Class PortForwardCleanupPeriodicWork

All Implemented Interfaces:
ExtensionPoint, Runnable

@Extension public class PortForwardCleanupPeriodicWork extends AsyncPeriodicWork
Periodic background task that checks for and cleans up orphaned port-forward resources.

This provides an additional safety net for detecting port-forward resources whose launcher was garbage collected without proper cleanup (e.g., due to serialization during Jenkins restart, or abnormal connection termination).

The task runs periodically (default: every 15 minutes) and checks if any tracked port-forward resources have become orphaned (their launcher WeakReference has been cleared by the garbage collector).