Summarizing the execution result of trooper's batch

8 views
Skip to first unread message

Grinn

unread,
Jun 3, 2016, 10:24:10 AM6/3/16
to trooper-users
Hi,

I just started working on a project where trooper is used to execute daily jobs.
On the execution window of Trooper the user can see if the job completed or failed.
I would need to save and analyze the more detailled version of this (every status of each step for every job).
Do u know how could I get this data easily ?
It's the first time i am using this tool and I'm a bit lost :)


Thank you,

Grinn

Regunath Balasubramanian

unread,
Jun 6, 2016, 1:31:25 AM6/6/16
to Grinn, trooper-users
Grinn,

All of Trooper execution stats are available in JSON format as well. For e.g.
http://<host name>:8182/jobs.json will provide Job details in JSON and supports REST style navigation.
You can also look at http://<host name>:8182/jobs/executions.json for execution details of all jobs and navigate to specific instances as needed.

One way to achieve what you are looking for would be to write a cron job that pulls these stats off Trooper batch and stores them someplace for analysis.
A slightly more involved method is to replace all of Trooper Batch DAOs (which currently store data in memory) with the DB based ones (Look at Spring batch for guidance). In this case, all execution details are logged to a database.

Hope this helps.

Regu

Antoine Grinenwald

unread,
Jun 6, 2016, 4:48:04 AM6/6/16
to Regunath Balasubramanian, trooper-users
Thank you Regu. That's exactly the information I was missing!
Reply all
Reply to author
Forward
0 new messages