towerops/lib/towerops/workers
Graham McIntire ae64ec2576
feat: add automatic polling job cleanup on deployment
Added JobCleanupTask that runs on production startup to cancel all
existing polling jobs and reschedule them with the latest worker code.

This ensures:
- No stale jobs run with old code after deployment (e.g., missing SNMPv3 credentials)
- All devices get fresh polling jobs with current logic
- Production deployments are seamless without manual intervention

The task:
- Only runs in production environment (skipped in dev/test)
- Runs asynchronously after supervisor initialization
- Cancels all DevicePollerWorker and DeviceMonitorWorker jobs
- Reschedules polling for all SNMP-enabled devices
- Is idempotent and safe to run multiple times

Removed debug logging from Client and DevicePollerWorker as SNMPv3
implementation is now verified and working correctly.
2026-02-05 08:28:27 -06:00
..
agent_latency_evaluator.ex fix: resolve all dialyzer unmatched return and pattern match warnings 2026-01-24 17:34:37 -06:00
backup_summary_worker.ex Mikrotik backup and gettext start 2026-02-02 09:11:22 -06:00
backup_timeout_worker.ex Mikrotik backup and gettext start 2026-02-02 09:11:22 -06:00
device_monitor_worker.ex prevent poller fallback when assigned poller is selected 2026-02-04 16:24:19 -06:00
device_poller_worker.ex feat: add automatic polling job cleanup on deployment 2026-02-05 08:28:27 -06:00
discovery_worker.ex fix bug in discovery poller 2026-01-30 16:34:14 -06:00
firmware_version_fetcher_worker.ex mikrotik version upgrade tracking 2026-02-01 12:35:41 -06:00
job_cleanup_task.ex feat: add automatic polling job cleanup on deployment 2026-02-05 08:28:27 -06:00
job_health_check_worker.ex impersonate fix and change log level for device polling 2026-02-01 13:33:36 -06:00
login_history_cleanup_worker.ex user session tracking 2026-01-29 14:14:21 -06:00
mikrotik_backup_worker.ex handle mikrotik ssh 2026-02-02 16:42:18 -06:00
polling_offset.ex add oban pro 2026-01-26 17:07:42 -06:00
session_cleanup_worker.ex user session tracking 2026-01-29 14:14:21 -06:00
stale_agent_worker.ex fix: resolve all dialyzer unmatched return and pattern match warnings 2026-01-24 17:34:37 -06:00