[Job Chaining] Added support for multiple sequential jobs #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Job Chaining allows us to run multiple jobs sequentially, where each job starts only after the previous one completes successfully. This is perfect for multi-step workflows like:
Basic Chain
What happens:
If any job fails, the chain stops and remaining jobs won't execute.
Usages Pattern
Pattern 1: Static Chain Creation
Pattern 2: Instance Method Chaining
Pattern 3: With Configuration
With Success Handler and With Error Handler
Synchronous Execution
Execute chain immediately without queueing:
How It Works Internally
Failure Scenario
Assume Job2 Fails:
Chain Implementation Flow