The server only sent polling/ping jobs to agents once on WebSocket join and never re-dispatched them. After the first batch completed (~5-10s), devices were never polled again until the agent reconnected. :send_jobs now schedules a follow-up dispatch every 60s (configurable). Unifies the timer management with :assignments_changed to prevent accumulation. |
||
|---|---|---|
| .. | ||
| agent_channel.ex | ||
| agent_socket.ex | ||