Check for running Task

Is there an action to check if a task is currently running on the server? I'd like to skip calling a task to run if it's already running so it does not error out. Basically looking for an option here that says don't fail if task is running.

image


Something similar to this:

image

Getting task status is possible with the EasyMorph Server CLI, but not with the "EasyMorph Server command" action yet.

See the gettask command of the ems-cmd command-line utility: GitHub - easymorph/server-cmd: Command line API client for EasyMorph Server

Thanks for the suggestion, but it doesn't let me know if it's running.

image

You're correct. I forgot that we removed this field from task properties when we added the ability to run multiple instances of a task.

For now, there is no API/command to receive information if there are any running instances of a task. We will add it to the roadmap.

1 Like

Honestly, if you could just make it so this action doesn't cause the model to fail, that would solve my issues.

image

1 Like