Philippe Hébert
05/30/2022, 2:36 AMVincil Bishop
05/30/2022, 12:40 PMMichal Hauzírek
05/30/2022, 2:39 PMPOST /gdc/projects/{projectId}/schedules/{scheduleId}/executions
{
"execution":{}
}
where {projectID} is the ID of your workspace and {scheduleID} is ID of your schedule - you can easily find it - it is in the URL if you click on the schedule in in the Data Integration Console (it is the part after /schedules/
in the URL).
Once you execute this API, it puts your execution into the queue and it will return you a link to it with unique executionID. On that link you can easily check its status by calling GET on it. The link is in form of:
GET /gdc/projects/{projectId}/schedules/{scheduleId}/executions/{executionID}
So you can poll for the execution result with some reasonable interval like once a minute or so.
One of the properties there is status
and it can be one of these:
• SCHEDULED = waiting to be executed in the queue
• RUNNING = being executed right now
• ERROR = finished with error
• WARNING = finished with warning
• OK = finished with success
You can also check each schedule and their last execution and last successfull execution without specifying the executionID by calling
GET /gdc/projects/{projectId}/schedules/{scheduleId}
And finally, you can list history of executions of a particular schedule like this:
GET /gdc/projects/{projectId}/schedules/{scheduleId}/executions
I hope this helps.Philippe Hébert
06/03/2022, 2:59 PMVincil Bishop
06/03/2022, 3:19 PM