test(poller): add ECS poller tests and index documentation
loading diff…
PR #1100 (ECS task duration tracking and zombie detection) received review feedback from @venkat82 after merge. This PR addresses all the comments.
Address review feedback from PR #1100:
Index documentation in models.py (line 217 comment)
__table_args__ for easier readabilityUnit tests for utility functions (line 675 comment)
extract_cluster_from_task_arn - 5 tests covering standard ARNs, custom clusters, malformed inputsformat_termination_details - 5 tests covering various termination detail combinationsget_effective_timeout / is_timed_out - 9 tests covering timeout caps and timezone handlingTests for task completion between polling intervals (line 311 comment)
task_started_at scenarios (when task completes before poller runs)Tests for zombie detection (line 855 comment)
Total: 28 new tests added
uv run pytest tests/unit/test_ecs_poller.py -v
ecs_poller.py to avoid database import chain issues🤖 Generated with Claude Code