Hi !!!
I need to know when last time the JOB finished with status Ok ( =1)
Can I know it with DS Functions without to scan Log of Job ?
Thank you
Date and Time of Last Successful Job Run
Moderators: chulett, rschirm, roy
I don't have access to the documentation here to give you the exact options, but the command is DSGetJobInfo()
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Ahh, when I responded I skipped over the "successful" keyword, I thought the poster just wished the last run information. As stated, this information is not directly available and perhaps not even available at all if the log has been cleared or purged.
To date I've implemented systems where the statistics are automatically collected after each job run and added to a statistics hashed file. This can be done by several methods, each of which have their advantages and disadvantages. One method is to add an after-job call to each job, another is to have a background job running constantly and checking every n-minutes for completed run and the last method I've used is to modify the verb in the VOC that calls jobs to automatically trigger the statistics collection.
To date I've implemented systems where the statistics are automatically collected after each job run and added to a statistics hashed file. This can be done by several methods, each of which have their advantages and disadvantages. One method is to add an after-job call to each job, another is to have a background job running constantly and checking every n-minutes for completed run and the last method I've used is to modify the verb in the VOC that calls jobs to automatically trigger the statistics collection.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
You cannot directly test for "OK", you need to use below function and track the value of Status_value(a user defined variable), if the Status_value = 2 then your job finished "ok"
Status_value = DSGetJobInfo (DSJ.ME, DSJ.JOBINTERIMSTATUS)
also the function DSGetLogSummary can help.
but as replied earlier by ray you need to read a job log where all information is stored.
Status_value = DSGetJobInfo (DSJ.ME, DSJ.JOBINTERIMSTATUS)
also the function DSGetLogSummary can help.
but as replied earlier by ray you need to read a job log where all information is stored.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: