Example: How to create a multi-step job
See original GitHub issueAdd an example on how to create a multi-step job.
Two possible solutions:
- Maintain state in
task_data
, update and reschedule - ~Schedule the next step at the very end of the current step using the SchedulerClient (not guaranteed atomic)~
- Schedule next step in the CompletionHandler
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (9 by maintainers)
Top Results From Across the Web
Example: Creating a multi-page job application form
Create 3 new pages: Page A, Page B, and Page C. · From the Assets pane, select Forms to list the existing form...
Read more >9 Best Multi Step Form Examples for Your Inspiration [By ...
Why use multi step forms? Example 1: HomeAdvisor — Plumbing, HVAC, and Service Businesses; Example 2: Pest Control Allentown Pa — Pest Control...
Read more >10 Best Multi Step Form Examples And Why They Work
10 Best Multi Step Form Examples And Why They Work · 10 – “Post a job?”, by Khoros · 9 – “2 steps...
Read more >Create a Multi-Step SQL Server Agent Job (T-SQL)
In this article, I'll show you how to create a job with multiple steps. Example. When you create a SQL Server Agent job...
Read more >How to Write a Multistep MapReduce Job Using the mrjob ...
For more, check out Michael Manoochehri's Addison-Wesley Data Series book "Data Just Right: Introduction to Large-Scale Data & Analytics at ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I may have been a bit quick to answer here:
Answer:
For the second option (in the description), the next step is actually scheduled at the very end of the
ExecutionHandler
. TheCompletionHAndler
will run after the fullExecutionHandler
has run. If we put it at the very end of theExecutionHandler
there may be some edge-cases. The one I can think of is:Merged a PR enabling scheduling the next step in the CompletionHandler, safely. See JobChainingUsingSeparateTasksMain.java
I have also fixed so that immediateExecution works for scheduling that happens in the CompletionHandler, so
enableImmediateExecution()
will cause anything scheduled tonow()
(or before) to run directly, bypassing thepollingInterval
.I think what remains for these use-cases is reliably scheduling two or more new executions in a
CompletionHandler
. It is probably a niche use-case, but would be nice to support. Requires transactional CompletionHandlers.(The changes mentioned are not yet release, but will be soon)