ForceUpdateInstance functions identically to UpdateInstance with one important distinction. It does not validate the agent ID or instance status or runner status transitions. This function must only be used in recovery scenarios, where GARM crashed or was restarted while runners were going through a
(ctx context.Context, instanceName string, param params.UpdateInstanceParams)
| 105 | // If GARM is just starting up and we see one in "creating", it means that the process that was creating it |
| 106 | // was most likely interrupted before it finished and we must clean it up. |
| 107 | ForceUpdateInstance(ctx context.Context, instanceName string, param params.UpdateInstanceParams) (params.Instance, error) |
| 108 | |
| 109 | // Probably a bad idea without some king of filter or at least pagination |
| 110 | // |
no outgoing calls
no test coverage detected