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/runningIf you have the job id from the last run, you can see when it finished:
GET /transformations/jobs/id/<jobid>/resultIf 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/finishedThis post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
Login to the community
No account yet? Create an account
An FME Account is required to contribute
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

