Is there a way from the rest API to check what jobs are currently running? I have my users submitting jobs to run asynchronously and I would like to make sure that job isn't already running before they try and submit. Is there a way to see when a job was last run?
Solved
Check running jobs - Server Rest API
Best answer by david_r
Retrieve all running jobs:
GET /transformations/jobs/running
If you have the job id from the last run, you can see when it finished:
GET /transformations/jobs/id/<jobid>/result
If you don't have the job id, query all finished and/or queued jobs to look for your workspace filtering on the request.workspacePath reponse (you will have to request detail=high):
GET /transformations/jobs/queued
GET /transformations/jobs/finished
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.