Book demo
Start trial
Book demo
Start trial

Get Schedule Run Status

Description

Returns the execution status of a schedule identified by the ScheduleId . This endpoint is used to check the current execution state of schedule, e.g. to check if the schedule can be started on a different environment.

The ScheduleId is fetched from the Get All Schedules endpoint.

Request URL

http://{controllerMachine}:{controllerPort}/api/v3/schedules/{scheduleid}/status

Input parameters

Field Type Description Comments
scheduleid string Unique identifier for Schedule scheduleId can be fetched from response body of Get Schedule, it is referred as ‘Id’ there.

Examples

Curl

curl -X GET --header 'Accept: application/json' --header 'AccessKey: Mo87Nc4qDAtzJNDb’  'http://{controllerMachine}:{controllerPort}/api/v3/schedules/39f2b3e3-fa24-43e7-a2d6-38815128ac6c/status' 

PowerShell 

$headers = @{}

$headers.Add("AccessKey","Mo87Nc4qDAtzJNDb")

Invoke-WebRequest -Uri "http://{controllerMachine}:{controllerPort}/api/v3/schedules/39f2b3e3-fa24-43e7-a2d6-38815128ac6c/status" -ContentType "application/json" -Headers $headers -Method GET

Response

Returns current execution status of a particular schedule

{
    "$id": "1",
    "Status": "Executing"
}

 

Response object

 

Field Type Description Values
Status string Returns status of schedule "Finished/Queued/Executing" "Finished":
Finished is returned when all flows in schedule/run have finished their execution.

"Executing":
Executing is returned when the schedule/run is currently executing flow(s).

"Queued":
Queued is returned when all environments are consumed due to one or more schedule execution, in this situation if new schedule is triggered then it will be Queued (pause and wait) till the time at least one of the environment is available.

 

Response Code

 

200 (OK)

404 (Not Found)

401 (Unauthorized)

400 (Bad Request)

405 (Method Not Allowed)

500 (Internal Server Error)