I have a job that only should be executed if the result of a query equals 1.
The principle is
1) check if an update is complete (return 0/1 from sql query)
2) if 0, wait 5 minutes and do the check again
if 1, execute all tasks of the job
3) there is a timeout defined on the job: job takes longer than 1 hour, throw exception in order to stop the job and send a notification.
I currently have as first task in the job a task that outputs the 1/0 queryresult. That result is used in the condition.
But now I need to use the same condition for a second and probably a third job. Is there not a way to implement a more generic condition, without the extra task in every job?
Thanks in advance for the help!
Edited by moderator
2018-08-15T11:08:17Z
|
Reason: Not specified