Class ProxmoxOrphanCleanup

All Implemented Interfaces:
ExtensionPoint, Runnable

@Extension public class ProxmoxOrphanCleanup extends AsyncPeriodicWork
  • Constructor Details

    • ProxmoxOrphanCleanup

      public ProxmoxOrphanCleanup()
  • Method Details

    • getRecurrencePeriod

      public long getRecurrencePeriod()
      Fire on the smallest configured cloud period (floored at MIN_BASE_MS), or the override when set. Jenkins reads this once when scheduling the work; per-cloud gating in execute(hudson.model.TaskListener) then applies any later edit at or above this base. Lowering a cloud's period below the startup base only fires faster after a restart, which ProxmoxOrphanCleanupRestartMonitor surfaces.
      Specified by:
      getRecurrencePeriod in class PeriodicWork
    • execute

      protected void execute(TaskListener listener)
      Specified by:
      execute in class AsyncPeriodicWork
    • getScheduledPeriodSeconds

      public long getScheduledPeriodSeconds()
      The cadence (seconds) the work is currently scheduled at (what Jenkins is actually using).
    • getEffectivePeriodSeconds

      public long getEffectivePeriodSeconds()
      The smallest cleanup-enabled period (seconds) currently configured.