AWS Thinkbox Discussion Forums

FR - job reports : scripting API access

Hi,
Would be nice to have Deadline API functions to allow me to write py scripts to access any of the job reports in READ-ONLY mode.
I have a situation where ideally, I would like to build an event plugin (onJobFinished), which crawls through the job reports looking for certain STDOUT : INFO / WARN messages and collates this information and reacts accordingly. Yep, the reports are XML based and I can parse them myself, but not future proof, like having you guys support API functions to allow easy access :slight_smile:
Thoughts? Would anyone else find this useful, to have access to the job reports?
Thanks,
Mike

Hey Mike,

I think this is doable. We’ll be evaluating the API later on in the beta once things stabilize, so we can investigate then.

I think we would have a function to get all the report “objects” for a job (which store the report’s meta data like which slave it was created on), and then allow you to pass a report object’s ID to another function to get the actual log text for that report.

Cheers,

  • Ryan

Perfect!
I see it sitting in nicely with the rest of the “object” orientated API functions recently introduced such as “jobObject”, “slaveObject”, etc.
I think querying the job reports as an object for custom scripts could be quite a lot of fun and would also be interesting to see if other users would then push some of this information into a DB for future use…who know’s?..lots of possibilities…:slight_smile:
Thanks,
Mike

Privacy | Site terms | Cookie preferences