once you have the jobrunid you should be able to use the commands in the job/jobrun namespace.
Yes, for sure, but how to do this ?
getHadErrors do not take any parameter...
I may have to store the values with a kind of blcli_storeenv but don't know how to call this in my bljython code...
You load the job run object into memory and then get the hadErrors. There should also be a ‘JobRun.getJobRunHadErrors’ command that takes the jobrunkey.
Can you give me a short code to be sure to understand correctly ?
For a deploy job, I can retrieve the result with a kind of 'JobRun.getJobRunHadErrors' but it's different with a batch job.
And I'm not sure how to load the object in memory in the right way.
Thanks for your help!
1 of 1 people found this helpful
You have the job run id from the batch job right?
So feed that job id to the ‘JobRun.getJobRunHadErrors’ ?
Your workaround is working.
I'm using the JobRun.getJobRunHadErrors method, as I was already done for testing the result of a deploy job.
As this is a Batch job and I have to use the "batchjob" and "batchjobrun" dedicated namespace to run it, and there's a getHadErrors method in batchjobrun, I thought I have to use this.
But using the JobRun.getJobRunHadErrors is working on the batchjobrun too (with the batchjobrunkey).
This is not the more elegant way, but it is working so we can close this.
Thanks a lot.