Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


rprastein
2010-09-01T04:34:29Z
I'd like to see variables for the current task. Also, an object for the previous task or previous job, from which one could get that task or job's variables. Also, the start time of the current job (unless the last executed time is updated at job start, in which case that will suit just fine) or current task.

Does last exited refer to both normal and abnormal exits?

Thanks,

Rebeccah
Sponsor
Forum information
Support
2010-09-01T08:34:56Z
Instead of Id you can use Active or PrevTask as Id.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rprastein
2010-09-01T19:36:18Z
So, would this be an example of proper syntax to include information about a failed job, the failed task, and the immediately preceding task in the job, in a failure notification?


There was an error running job {JOB(Active|Name)} from VisualCron on the test server.
The error occurred in task {TASK(Active|Name)}
Execution time: {TASK(Active|ExecutionTime)}
Exit code: {TASK(Active|ExitCode)}
Exit code description: {TASK(Active|ExitCodeDesc)}

Previous task: {TASK(Prev|Name)}
Execution time: {TASK(Prev|ExecutionTime)}
Exit code: {TASK(Prev|ExitCode)}
Exit code description: {TASK(Prev|ExitCodeDesc)}


Thanks,

Rebeccah

Support
2010-09-01T22:28:15Z
If you are referring to Active Task you need to attach the Notification to the Task. If you attach it to the Job it does not know which is the "Active" Task.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rprastein
2010-09-01T22:31:56Z
Yes, this would be attached to a task. Is the syntax correct, though?

Also, what would happen if it were attached to a job? Would it just not substitute a value for the key (or substitute a meaningless value), or would it actually cause an error in VisualCron and not sent the notification?

Thanks,

Rebeccah
Support
2010-09-01T22:37:29Z
The syntax seems OK.

It would generate an error which you will see in the email - it will send it though.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rprastein
2010-09-01T22:38:55Z
Scroll to Top