{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/worker-manager/v1/worker-lifecycle.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Conditions a worker can reach and actions to take in the case that they do.\nNot all providers necessarily implement all features of this in the same way.\nRead the providers docs to understand exactly what it will do.\n",
  "properties": {
    "queueInactivityTimeout": {
      "default": 7200,
      "description": "In order to prevent workers from being stuck without doing any work,\n`queueInactivityTimeout` controls how long a worker can do something other than\nworking on a task. If worker process dies, or it stops calling `claimWork`\nor `reclaimTask` it should be considered dead and terminated.\n\nMinimum allowed value is 20 minutes (default claim timeout),\nto prevent workers from being terminated\nwhile they are executing task, starting up or rebooting between the tasks.\n\nThis timeout has no affect quarantined workers,\nas they are still calling `claimWork`.\nStatic workers are also unaffected.\n",
      "minimum": 1200,
      "title": "Queue Inactivity Timeout",
      "type": "integer"
    },
    "registrationTimeout": {
      "description": "Each worker in this pool has `registrationTimeout` seconds to\nregister itself with worker-manager after it has\nbeen requsted from the cloud provider. After this\ntimeout, worker-manager will terminate the instance,\nassuming it is broken.\n\nThis parameter has no effect for worker pools using the static provider\ntype.\n",
      "title": "Registration Timeout",
      "type": "integer"
    },
    "reregistrationTimeout": {
      "default": 345600,
      "description": "If specified, workers in this pool must re-register via `reregister()`\nwithin `reregistrationTimeout` seconds from the initial call to\n`register()` to get new credentials. If the worker has not done so, it\nwill be terminated.  This value also dictates the lifetime of the\ntemporary credentials granted to the worker, meaning that it must be\nless than 30 days. The default value is 4 days.\n",
      "maximum": 2592000,
      "title": "Checkin Timeout",
      "type": "integer"
    }
  },
  "required": [],
  "title": "Worker Lifecycle",
  "type": "object"
}