public class ResetExpiredJobsRunnable extends Object implements Runnable
Job entities periodically for 'expired' jobs.
When a job is executed, it is first locked (lock owner and lock time is set). A job is expired when this lock time is exceeded. This can happen when an executor goes down before completing a task.
This runnable will find such jobs and reset them, so they can be picked up again.| Modifier and Type | Field and Description |
|---|---|
protected AsyncExecutor |
asyncExecutor |
protected boolean |
isInterrupted |
protected AtomicBoolean |
isWaiting |
protected JobInfoEntityManager<? extends JobInfoEntity> |
jobEntityManager |
protected Object |
MONITOR |
protected String |
name |
| Constructor and Description |
|---|
ResetExpiredJobsRunnable(String name,
AsyncExecutor asyncExecutor,
JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager) |
protected final String name
protected final AsyncExecutor asyncExecutor
protected final JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager
protected volatile boolean isInterrupted
protected final Object MONITOR
protected final AtomicBoolean isWaiting
public ResetExpiredJobsRunnable(String name, AsyncExecutor asyncExecutor, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager)
Copyright © 2018 Flowable. All rights reserved.