Hey!
I want to make a robot that monitors all jobs and I would like to do this especially for jobs that run for too long.
Do you have any idea how I can do this?
Many thanks,
Dragos
Hey!
I want to make a robot that monitors all jobs and I would like to do this especially for jobs that run for too long.
Do you have any idea how I can do this?
Many thanks,
Dragos
Maybe this could help though I didn’t try it,
It will get the jobs in orchestrator in a collection.
Thanks
If your Jobs are running too long, then those automations haven’t been designed correctly. I would address why an automation is running too long. Maybe inside the process you need to make it stop after a certain amount of time, or a certain number of records processed.
Hey Dragos,
I haven’t tried myself either, but in the documentation link @prasath_S sent, your usecase is actually an example!
- Filter - Specifies the OData filter to get jobs (i.e. CreationTime gt 2017-01-01T00:03:08.93Z and
State eq 'Running'
).
Fill CreationTime dynamically with something like this:
Now.AddHours( - int_MaxJobDurationInHrs).ToString(RequiredFormat)
Of course you will want to filter for jobs lesser than that datetime, not greater than
Also, +1 to what @postwick said. Definitely look into the reasons why a job is running to long.
Cheers,
Lukas