Skip to main content
Solved

How do I selectively clear job queue.

  • September 23, 2020
  • 2 replies
  • 19 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

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • 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
  • September 23, 2020

That solved it. Thank you.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings