JonRunr Pro

The purpose of this extension is to leverage some features only available in the Pro version of JobRunr. Only the Pro version allows to search existing jobs by status and label. This is required for the deadline manager to implement the cancelAll methods. The deadline managers section has more in depth information on deadline managers. Although jobs created with the non-pro DeadlineManager will be eligible to be canceled, this is only true when they were created with the 4.8 or later versions. Jobs created with the 4.7.x version are missing the correct labels and will not be found when trying to cancel them.

Spring usage

For Spring usage, be sure to include the starters, both of JobRunr Pro and the extension. The deadline manager should be available by using parameter-based injection. It can be used in aggregates and sagas using something like:

public void handle(SomeCommand command, @Autowired DeadlineManager deadlineManager) { ... }

Non Spring Usage

An JobRunrProDeadlineManager instance can be created using the builder like this:


You probably want to use some form of dependency injection instead of creating a new deadline manager each time you need one.

Last updated