Class LockWaitTimeoutPeriodicWork
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
org.jenkins.plugins.lockableresources.queue.LockWaitTimeoutPeriodicWork
- All Implemented Interfaces:
ExtensionPoint,Runnable
Periodic work that checks for timed-out lock queue entries and for resources whose release delay
is over.
This runs every 15 seconds to check if any queued pipeline contexts have exceeded
their timeoutForAllocateResource. Without this, timed-out entries would only
be detected when resources are freed (which might never happen if all resources are
permanently busy).
Delayed releases (onReleaseDelay / onCancelDelay) have their own scheduled
task; this is only the safety net in case that task did not run.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
LockWaitTimeoutPeriodicWork
public LockWaitTimeoutPeriodicWork()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-
doRun
protected void doRun()- Specified by:
doRunin classSafeTimerTask
-