Is there a way to extract a JSON list of the jobs that have been canceled or failed? I can only really see a list for jobs that are either queued, running or completed? Ideally this would be great if this could be accessed via the REST API
I believe you'll have to do that in two stages:
First get all the job IDs of all completed jobs:
GET /transformations/jobs/completed
Then loop over all the completed jobs to get the job status for each job id:
GET /transformations/jobs/id/<jobid>/result
Hi @ryanslevin0,
In FME Server 2018.0 you can list all failed or succeeded jobs with a single call using the completedState query parameter:
GET /transformations/jobs/completed?completedState=failed
GET /transformations/jobs/completed?completedState=success
@david_r's solution is correct for all older versions of FME Server using the REST API v3.
Hi @ryanslevin0,
In FME Server 2018.0 you can list all failed or succeeded jobs with a single call using the completedState query parameter:
GET /transformations/jobs/completed?completedState=failed
GET /transformations/jobs/completed?completedState=success
@david_r's solution is correct for all older versions of FME Server using the REST API v3.
Hi @ryanslevin0,
In FME Server 2018.0 you can list all failed or succeeded jobs with a single call using the completedState query parameter:
GET /transformations/jobs/completed?completedState=failed
GET /transformations/jobs/completed?completedState=success
@david_r's solution is correct for all older versions of FME Server using the REST API v3.
Is there a way to flag if the job has been Cancelled? We have a few jobs that are force canceled if they run to long, it seems there isnt anyway to flag a Cancelled job, only if its Failed or Completed...
Is there a way to flag if the job has been Cancelled? We have a few jobs that are force canceled if they run to long, it seems there isnt anyway to flag a Cancelled job, only if its Failed or Completed...
See also the documentation.