towerops/lib/towerops_web
Graham McIntire 5339f51dd8
Convert Task.* calls to Exq background workers
Created three new Exq workers to handle background jobs:
- PollWorker: SNMP polling operations (queue: polling)
- MonitorWorker: Device monitoring checks (queue: monitoring)
- DiscoveryWorker: SNMP discovery (already existed)

Updated files to use Exq.enqueue instead of Task.start:
- lib/towerops/snmp/poller_worker.ex
- lib/towerops/monitoring/device_monitor.ex
- lib/towerops_web/channels/agent_channel.ex

Each module includes enqueue_* helper functions that:
- Use Task.start in test environment for synchronous execution
- Use Exq.enqueue in dev/prod for proper background job processing

Added "monitoring" queue to Exq configuration in application.ex

All tests passing (824 tests, 0 failures)
2026-01-17 16:46:36 -06:00
..
channels Convert Task.* calls to Exq background workers 2026-01-17 16:46:36 -06:00
components rename equipment to device 2026-01-17 14:48:46 -06:00
controllers credo cleanup 2026-01-17 15:00:52 -06:00
helpers Add build timestamp to footer with shared time formatting helpers 2026-01-17 11:10:50 -06:00
live feat: use Exq for SNMP discovery background jobs 2026-01-17 16:39:40 -06:00
plugs Add comprehensive Dialyzer type specifications 2026-01-17 10:52:02 -06:00
endpoint.ex agent improvements and agent config 2026-01-16 17:26:51 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
router.ex Add agent rename functionality 2026-01-17 15:48:47 -06:00
telemetry.ex Add comprehensive Dialyzer type specifications 2026-01-17 10:52:02 -06:00
user_auth.ex moduledocs 2026-01-17 15:08:49 -06:00