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. |
||
|---|---|---|
| .. | ||
| agent_latency_evaluator.ex | ||
| backup_summary_worker.ex | ||
| backup_timeout_worker.ex | ||
| device_monitor_worker.ex | ||
| device_poller_worker.ex | ||
| discovery_worker.ex | ||
| firmware_version_fetcher_worker.ex | ||
| job_cleanup_task.ex | ||
| job_health_check_worker.ex | ||
| login_history_cleanup_worker.ex | ||
| mikrotik_backup_worker.ex | ||
| polling_offset.ex | ||
| session_cleanup_worker.ex | ||
| stale_agent_worker.ex | ||