towerops/test/towerops
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
..
accounts Add UserNotifier tests 2026-01-13 08:25:20 -06:00
agents perf: optimize slow tests with bulk inserts and fewer iterations 2026-01-24 15:13:21 -06:00
api_tokens add parallel build 2026-01-19 14:17:05 -06:00
ecto_types Add comprehensive test coverage for core context modules 2026-01-19 14:38:34 -06:00
equipment test cleanup 2026-01-19 13:29:38 -06:00
monitoring refactor: simplify job architecture from Oban coordinators to direct workers 2026-01-24 16:36:57 -06:00
organizations rename equipment to device 2026-01-17 14:48:46 -06:00
profiles Add comprehensive test coverage for core context modules 2026-01-19 14:38:34 -06:00
proto add parallel build 2026-01-19 14:17:05 -06:00
sites Add comprehensive tests for Sites.Site schema 2026-01-13 09:05:02 -06:00
snmp refactor: replace Task.async_stream with Oban jobs for discovery 2026-01-24 17:15:36 -06:00
workers refactor: convert periodic workers to Oban Cron for better resilience 2026-01-24 16:56:28 -06:00
accounts_test.exs use password for user regi 2026-01-21 09:13:08 -06:00
agents_test.exs remote agent/cloud improvements 2026-01-24 09:16:41 -06:00
alerts_test.exs feat: add APC, Arista, Calix, ADTRAN, Allied Telesis vendor modules 2026-01-22 11:00:21 -06:00
api_tokens_test.exs perf: optimize slow tests - reduce timeouts and property test iterations 2026-01-24 15:22:56 -06:00
devices_test.exs perf: optimize slow tests - reduce timeouts and property test iterations 2026-01-24 15:22:56 -06:00
log_filter_test.exs Fix Credo issues and improve code quality 2026-01-19 15:09:19 -06:00
monitoring_test.exs perf: optimize slow tests with bulk inserts and fewer iterations 2026-01-24 15:13:21 -06:00
organizations_test.exs Add comprehensive test coverage for core context modules 2026-01-19 14:38:34 -06:00
profiles_test.exs Add comprehensive test coverage for core context modules 2026-01-19 14:38:34 -06:00
redis_health_check_test.exs more tests 2026-01-22 11:51:35 -06:00
settings_test.exs remote agent/cloud improvements 2026-01-24 09:16:41 -06:00
sites_test.exs credo fix 2026-01-20 16:41:44 -06:00
snmp_test.exs arp 2026-01-23 08:40:57 -06:00