When a device is deleted, now broadcasts an assignment change event to the agent (if assigned), causing the agent to receive an updated job list without the deleted device. This ensures agents stop processing any in-flight jobs for deleted devices. Changes: - Get agent assignment before deleting device - Broadcast :device_deleted event to agent after deletion - Agent channel receives broadcast and sends updated job list - Agents naturally stop processing jobs for devices not in new list Previously only cancelled Oban jobs but didn't notify agents, leaving potential for agents to continue processing jobs for deleted devices. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_native.ex | ||
| towerops_web.ex | ||