Package org.jobrunr.jobs.filters
Interface ElectStateFilter
- All Superinterfaces:
JobFilter
- All Known Implementing Classes:
RetryFilter
A filter that is triggered each time that the state of a Job is changed (except when the Job is deleted via the Dashboard).
This filter will be called before that the job has been saved to a
StorageProvider
.
Altering the job may change the lifecycle of the job - an example of this is the RetryFilter
which updates jobs that are failed to scheduled again.
Every ElectStateFilter
must also respect the allowed state changes. See AllowedJobStateStateChanges
for more info.
Please note: Any JobFilter
should process really fast. If it is repeatedly slow, then it will be removed as it negatively impacts the performance of JobRunr.-
Method Summary
-
Method Details
-
onStateElection
-