Automate server shutdown when no jobs are running
Posted: Mon Jun 27, 2022 12:07 pm
Hi,
We are trying to automated the startup/shutdown of our FFAStrans server.
When content is found in a specific folder, we can trigger the start-up of our FFAStrans server, but i need a reliable way to query FFAStrans to see if there are any active Jobs being worked on.
If i can use the API to query and check that no jobs are running i can automate server shutdown when the server is not in use.
In the API documentation i can see i can get lists of workflows, and i can get the status for specific jobs http://<servername/ip>:65445/api/v2/jobs/<job_id>, but I can't see any API call to list all jobs?
Any pointers?
We are trying to automated the startup/shutdown of our FFAStrans server.
When content is found in a specific folder, we can trigger the start-up of our FFAStrans server, but i need a reliable way to query FFAStrans to see if there are any active Jobs being worked on.
If i can use the API to query and check that no jobs are running i can automate server shutdown when the server is not in use.
In the API documentation i can see i can get lists of workflows, and i can get the status for specific jobs http://<servername/ip>:65445/api/v2/jobs/<job_id>, but I can't see any API call to list all jobs?
Any pointers?