JobRunr Pro allows you to chain jobs using a fluent API style. This gives you an immediate overview of your business process.
Job chaining via
Job chaining when using the
If you are using the
JobBuilder pattern, this is also possible by means of the
How does it work?
- the first job (
archiveService.createArchive(folder)) is enqueued and will start processing as soon as some worker threads are available
- the second job (
notifyService.notifyViaSlack(String room, String message)) will initially be saved using the
- once the first job succeeds, the second job will be enqueued and processed.
This comes in really handy when using Batches - start a new step in your business process when a whole bunch of related jobs have finished.