sourceSchedules

List the schedules declared in the source files of a project, a branch or an environment to see what can be activated; returns every declared schedule as one page with the discovery diagnostics. Requires project.runs.read.

Arguments

  • projectReferenceString!required

  • inputSourceSelectorInput

  • input.sourceTargetKindSourceTargetKind

    The source to read; default runtimeTargetKind, else project. One of project, main_branch, environment, preview_branch.

  • input.runtimeTargetKindRuntimeTargetKind

    Used as the source to read when sourceTargetKind is omitted. One of main_branch, environment, preview_branch.

  • input.targetEnvironmentIdID

    Required with the kind environment.

  • input.targetBranchIdID

    Required with the kind preview_branch.

Responses

query SourceSchedules($projectReference: String!) {  sourceSchedules(projectReference: $projectReference) {    data {      id      name      description      schedule      timezone      runtimeTargetKind      runtimeTargetEnvironmentId      runtimeTargetBranchId      config      timeoutSeconds      backoffLimit      concurrencyPolicy      maxRuns      health      definitionSource      sourceTriggerId      sourcePath      sourceHash      editMode    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }    diagnostics {      kind      sourceKind      sourcePath      sourceId      code      message      details    }  }}
{  "data": {    "sourceSchedules": {      "data": [        {          "id": "string",          "name": "string",          "description": "string",          "schedule": "string",          "timezone": "string",          "runtimeTargetKind": "main_branch",          "runtimeTargetEnvironmentId": "string",          "runtimeTargetBranchId": "string",          "config": {},          "timeoutSeconds": 0,          "backoffLimit": 0,          "concurrencyPolicy": "allow",          "maxRuns": 0,          "health": {},          "definitionSource": "manual",          "sourceTriggerId": "string",          "sourcePath": "string",          "sourceHash": "string",          "editMode": "structured"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      },      "diagnostics": [        {          "kind": "string",          "sourceKind": "string",          "sourcePath": "string",          "sourceId": "string",          "code": "string",          "message": "string",          "details": {}        }      ]    }  }}

The SourceScheduleList! in data.sourceSchedules.