Getting all recent jobs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is there a way to get a list of all the recent jobs that have run in the gallery using the API? I know there's commands to get all the jobs for a workflow, and get information about a specific job. What I'm looking for is a command to get say the last 20 job ids that have run on the server.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Could you not just make a cut-off point and take the last 20 jobs that have run?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How would you do that? I'm new to the server API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Just drop a Sample tool in your flow and take the last/first N rows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @JohnLight,
Currently I don't believe there is a way, other than first getting every workflow id, then finding all the jobs associated with all those workflows. I think there are plans in future releases to make this simpler by introducing a new endpoint to the API, but as I say for now it's not there.
For example, this is a workflow I have to email me a daily roundup of my failed jobs, but I have to start from my schedules and workflows; rather than from all jobs...
Hope that helps,
Ollie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Gotcha, that is the only way I could think of, just seemed like it was a lot of steps and was unsure if there was that endpoint available. Thanks for your response.
