diy.razorgirl.winter.job

Scheduled task with natural-language instructions. Supports one-time and recurring schedules.

Details · record, key tid
Kindrecord
Record keytid
Authoritywinter.razorgirl.diy
Indexed
cid bafyreie2zlx3iojlq2dr3rj4hnrgcjlgbmzaz5rv75aplhkjrjcbd6px64

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "intervalSchedule": {
      "properties": {
        "seconds": {
          "type": "integer"
        },
        "type": {
          "const": "interval",
          "type": "string"
        }
      },
      "required": [
        "type",
        "seconds"
      ],
      "type": "object"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "failureCount": {
            "default": 0,
            "type": "integer"
          },
          "instructions": {
            "maxLength": 50000,
            "type": "string"
          },
          "lastRun": {
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "maxLength": 128,
            "type": "string"
          },
          "nextRun": {
            "format": "datetime",
            "type": "string"
          },
          "schedule": {
            "refs": [
              "#onceSchedule",
              "#intervalSchedule"
            ],
            "type": "union"
          },
          "status": {
            "default": "pending",
            "knownValues": [
              "pending",
              "running",
              "completed",
              "failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "instructions",
          "schedule",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "onceSchedule": {
      "properties": {
        "runAt": {
          "format": "datetime",
          "type": "string"
        },
        "type": {
          "const": "once",
          "type": "string"
        }
      },
      "required": [
        "type",
        "runAt"
      ],
      "type": "object"
    }
  },
  "description": "Scheduled task with natural-language instructions. Supports one-time and recurring schedules.",
  "id": "diy.razorgirl.winter.job",
  "lexicon": 1
}