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. |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_native.ex | ||
| towerops_web.ex | ||