Retrieve Job History based on a task execution - VisualCron - Forum

Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline Tjomme  
#1 Posted : Thursday, June 15, 2017 4:36:27 PM(UTC)
Tjomme

Rank: Free support

Joined: 11/13/2015(UTC)
Posts: 10
Belgium
Location: Brussels Hoofdstedelijk Gewest, Brussels

Hi,

We're using VisualCron 8.2.4 and are implementing a VB.NET API to go through logs.
I'm able to get the job logs using GetJobHistory and the task logs using GetTaskHistory.

Is it possible to retrieve the job execution status/log of a job when you get the info from GetTaskHistory?
If a task is in error, we'd like to show the status and logs of the job that was executing the task.

Thanks,
Tjomme
Offline Support  
#2 Posted : Tuesday, June 20, 2017 1:15:26 PM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,256

Thanks: 877 times
Was thanked: 450 time(s) in 427 post(s)
The history only contains historic executions and not the current execution status. Or did you mean anything else?
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Offline Tjomme  
#3 Posted : Tuesday, June 20, 2017 1:24:00 PM(UTC)
Tjomme

Rank: Free support

Joined: 11/13/2015(UTC)
Posts: 10
Belgium
Location: Brussels Hoofdstedelijk Gewest, Brussels

Well I'm actually referring to something else. Let me clarify:
Via the server.jobs.GetTaskHistory() function I'm able to retrieve the execution history of a task within a job.
I would like to report the execution history of the job executing this task as well.
More or less the same as in the VisualCron interface where you can see the job execution history and expand it to see the execution history of each task within this job. This, but then starting from the execution history of a task if possible.
The main goal is to report the status of the main job when a task has failed.
Offline Support  
#4 Posted : Wednesday, June 21, 2017 10:20:21 AM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,256

Thanks: 877 times
Was thanked: 450 time(s) in 427 post(s)
Originally Posted by: Tjomme Go to Quoted Post
Well I'm actually referring to something else. Let me clarify:
Via the server.jobs.GetTaskHistory() function I'm able to retrieve the execution history of a task within a job.
I would like to report the execution history of the job executing this task as well.
More or less the same as in the VisualCron interface where you can see the job execution history and expand it to see the execution history of each task within this job. This, but then starting from the execution history of a task if possible.
The main goal is to report the status of the main job when a task has failed.


The Task and Job share the same ExecutionId. So, you can extract the history for the Job based on the ExecutionId of the Task.
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Offline Tjomme  
#5 Posted : Wednesday, June 21, 2017 4:24:22 PM(UTC)
Tjomme

Rank: Free support

Joined: 11/13/2015(UTC)
Posts: 10
Belgium
Location: Brussels Hoofdstedelijk Gewest, Brussels

Hi,

How can you get the history of a job execution based on the executionID? Is there a function like GetTaskExecutionHistory (guidExecutionId) ?
Or do I need to loop the job history and compare executionIDs?

Thanks for the clarification,
Tjomme
Offline Support  
#6 Posted : Monday, June 26, 2017 11:28:50 AM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,256

Thanks: 877 times
Was thanked: 450 time(s) in 427 post(s)
Yes,

you have:

serverObj.Log.GetTaskExecutionHistory(guidExecutionId)
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top