towerops/lib/towerops/snmp
Graham McIntire a92d003aec
refactor: replace Task.async_stream with Oban jobs for discovery
Changed discover_all/1 to enqueue individual Oban jobs instead of using
Task.async_stream for better error visibility and resilience.

Benefits:
- Errors are visible in Oban dashboard with full stack traces
- Automatic retries on failure via Oban
- Jobs persist across pod restarts
- No more silent failures from Task crashes
- Better concurrency control via Oban queue configuration

Changes:
- discover_all/1 now enqueues DiscoveryWorker jobs and returns immediately
- Return type changed from %{success, failed, errors} to %{enqueued, failed, errors}
- Updated tests to match new async behavior
- Added DiscoveryWorker alias to Discovery module

All tests passing (3,625 tests, 0 failures).
2026-01-24 17:15:36 -06:00
..
profiles allow nonroutable for me 2026-01-23 13:10:12 -06:00
arp_discovery.ex arp 2026-01-23 08:40:57 -06:00
arp_entry.ex arp 2026-01-23 08:40:57 -06:00
client.ex fix device identification 2026-01-18 13:35:33 -06:00
deferred_discovery.ex more tests 2026-01-22 11:51:35 -06:00
device.ex better discovery 2026-01-22 17:40:58 -06:00
discovery.ex refactor: replace Task.async_stream with Oban jobs for discovery 2026-01-24 17:15:36 -06:00
interface.ex moduledocs 2026-01-17 15:08:49 -06:00
interface_stat.ex moduledocs 2026-01-17 15:08:49 -06:00
ip_address.ex feat: add IP address discovery (Phase 1.3) 2026-01-21 10:36:19 -06:00
mac_address.ex mac discovery 2026-01-23 09:22:08 -06:00
mac_discovery.ex mac discovery 2026-01-23 09:22:08 -06:00
memory_pool.ex feat: add memory pool and storage discovery (Phase 1.5) 2026-01-21 10:57:08 -06:00
mib_parser.ex add MIB-based validation and generic profile tests 2026-01-08 08:57:21 -06:00
mib_translator.ex better discovery 2026-01-22 17:40:58 -06:00
neighbor.ex moduledocs 2026-01-17 15:08:49 -06:00
neighbor_cleanup_worker.ex refactor: convert periodic workers to Oban Cron for better resilience 2026-01-24 16:56:28 -06:00
neighbor_discovery.ex arp 2026-01-23 08:40:57 -06:00
physical_entity.ex feat: add physical inventory discovery (Phase 1.4) 2026-01-21 10:46:27 -06:00
poller.ex snmp overhaul 2026-01-18 16:00:01 -06:00
poller_behaviour.ex snmp bits 2026-01-03 14:41:28 -06:00
processor.ex sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
processor_reading.ex sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
sanitizer.ex sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
sensor.ex moduledocs 2026-01-17 15:08:49 -06:00
sensor_reading.ex Fix all remaining worker test failures 2026-01-20 12:20:04 -06:00
snmp_behaviour.ex moar tests 2026-01-06 15:43:54 -06:00
state_sensor.ex add state sensor schema, migration, and discovery 2026-01-21 10:25:01 -06:00
storage.ex feat: add memory pool and storage discovery (Phase 1.5) 2026-01-21 10:57:08 -06:00
storage_reading.ex fix mikrotik sensors 2026-01-22 18:07:20 -06:00
vlan.ex add VLAN schema, migration, and discovery 2026-01-21 10:31:21 -06:00