fly-io · Schema

MachineRestart

Restart policy configuration for a Fly Machine.

Properties

Name Type Description
policy string When to restart the Machine after it exits. no disables restarts; on-failure restarts only on non-zero exit codes; always restarts unconditionally.
View JSON Schema on GitHub

JSON Schema

fly-io-machinerestart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MachineRestart",
  "title": "MachineRestart",
  "type": "object",
  "description": "Restart policy configuration for a Fly Machine.",
  "properties": {
    "policy": {
      "type": "string",
      "description": "When to restart the Machine after it exits. no disables restarts; on-failure restarts only on non-zero exit codes; always restarts unconditionally.",
      "enum": [
        false,
        "on-failure",
        "always"
      ]
    }
  }
}