Skip to main content
Solved

How do I selectively clear job queue.

  • September 23, 2020
  • 2 replies
  • 35 views

Forum|alt.badge.img+1

An errant process has dumped thousands of file into an FTP site with an FTP watcher on it. I now have thousands of jobs backed up in the queue with necessary jobs mixed in. I need to clear just the bad jobs from the queue and I need to do so without clicking through hundreds of pages and checking boxes. Please help.

Best answer by david_r

The easiest is probably to chain together some HTTPCallers and Testers and delete them using the REST API.

Since it's probably (hopefully) a one-off, you can simplify it by hard-coding the token in the headers.

To get a list of all the queued jobs with their detailed information:

GET /fmerest/v3/transformations/jobs/queued?limit=-1&offset=-1

To delete a specific job ID:

DELETE /fmerest/v3/transformations/jobs/queued/{id}

More information here:

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html

This 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.

2 replies

david_r
Celebrity
  • 8394 replies
  • Best Answer
  • September 23, 2020

The easiest is probably to chain together some HTTPCallers and Testers and delete them using the REST API.

Since it's probably (hopefully) a one-off, you can simplify it by hard-coding the token in the headers.

To get a list of all the queued jobs with their detailed information:

GET /fmerest/v3/transformations/jobs/queued?limit=-1&offset=-1

To delete a specific job ID:

DELETE /fmerest/v3/transformations/jobs/queued/{id}

More information here:

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html


Forum|alt.badge.img+1
  • Author
  • 21 replies
  • September 23, 2020

That solved it. Thank you.