Question

Is there a way to set-up an email notification if our FME engines have been running a job longer than 24 hours? All of our other FME jobs have not run since 7-11 due to our 2 Engines being clogged up by 2 hanging jobs (I cancelled these just now).


Is there a way to set-up an email notification if our FME engines have been running a job longer than 24 hours? All of our other FME jobs have not run since 7-11 due to our 2 Engines being clogged up by 2 hanging jobs (I cancelled these just now).

2 replies

Userlevel 3
Badge +16

You can't do it with a workspace because all engines are in use, but you might be able to do it with an Automation.

imageSchedule it for a time when you would not expect to see any workspace running, like 9pm or 5am.

In the automation you can make an HTTP request to FME Server's own rest API to get the number of jobs queued or running. https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html#!/transformations/listRunning_get_28

Then add a Filter looking for something like \\"totalCount\\":0 in the http response_body, if it fails that filter, then something is running when it normally wouldn't be, and you can send an email from the Automation.

Userlevel 4
Badge +25

You can't do it with a workspace because all engines are in use, but you might be able to do it with an Automation.

imageSchedule it for a time when you would not expect to see any workspace running, like 9pm or 5am.

In the automation you can make an HTTP request to FME Server's own rest API to get the number of jobs queued or running. https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html#!/transformations/listRunning_get_28

Then add a Filter looking for something like \\"totalCount\\":0 in the http response_body, if it fails that filter, then something is running when it normally wouldn't be, and you can send an email from the Automation.

Not sure if that would work since the Log and Filter actions are workspaces too.

Reply