Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
gainkarthi
Partner - Specialist
Partner - Specialist

What is the use of Task Dependencies

I could see even having chain jobs is not showing any task dependencies, so this is something different.

Any idea.

Capture.JPG.jpg

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

"Task Dependencies" serve a slightly different purpose than chained tasks.

A task chain lets Task 2 automatically start when Task 1 finishes with either status = success or status = failure

A Task Dependency (for example Task 3) will let the same Task 2 run only if the last run of Task 3 (whenever it occurred) was either succesfull or faulty. Task 3 will NOT trigger Task 2 but will block Task 2 from running if the last execution result of Task 3 was not the exepected one.

Task Dependencies will in the end override any other triggers. They have a pretty final say here.

Luck,

Peter.

View solution in original post

7 Replies
gainkarthi
Partner - Specialist
Partner - Specialist
Author

Any help on this please?

rajeshvaswani77
Specialist III
Specialist III

Are your tasks depend on other tasks? On success of task 1 perform task 2.

My guess is that is what the dependency should show.

thanks,

Rajesh Vaswani

gainkarthi
Partner - Specialist
Partner - Specialist
Author

Yes there is a one after another. But I have checked it, it's no longer related to that.

so this is something different.

Regards,

Karthi

gainkarthi
Partner - Specialist
Partner - Specialist
Author

Can anyone help on this ?

Peter_Cammaert
Partner - Champion III
Partner - Champion III

"Task Dependencies" serve a slightly different purpose than chained tasks.

A task chain lets Task 2 automatically start when Task 1 finishes with either status = success or status = failure

A Task Dependency (for example Task 3) will let the same Task 2 run only if the last run of Task 3 (whenever it occurred) was either succesfull or faulty. Task 3 will NOT trigger Task 2 but will block Task 2 from running if the last execution result of Task 3 was not the exepected one.

Task Dependencies will in the end override any other triggers. They have a pretty final say here.

Luck,

Peter.

gainkarthi
Partner - Specialist
Partner - Specialist
Author

Hi Peter,

Thanks for the response. will try and let you know.

Regards,

Karthi

patricio
Contributor III
Contributor III

I would like to add some complementary information even if Peter has already answered the original question.

I will use the same task names as Peter did.

If Task 3 (the dependency task) is executed successfully, all the subsequent executions of Task 2 will occur until the next execution of Task3.

If Task 3 is unsuccessful, all the subsequent executions of Task 2 will fail until the next execution of Task 3. The log message in the console (or email) will have the following:

Warning   Dependency check failed due to current errors in execution of task "Task 3".

Error      The task "Task 2" failed.

Note: I didn’t test what happens at the end of the day. Is everything reset or not? I did not find documentation for this.

Example:

Task 3 ok

    Task 2 ok

    Task 2 ok

Task 3 Fails

    Task 2 Fails (the script is not executed)

    Task 2 Fails (the script is not executed)

    Task 2 Fails (the script is not executed)

Task 3 ok

   Task 2 ok

   Task 2 ok

Etc.