Skip to content

Expire unanswered dispatched tasks - #57

Open
vikranthreddimasu wants to merge 1 commit into
masterfrom
expire-dispatched-tasks
Open

vikranthreddimasu wants to merge 1 commit into
masterfrom
expire-dispatched-tasks

Conversation

@vikranthreddimasu

Copy link
Copy Markdown
Owner

Summary

  • Expire dispatched tasks that do not receive a worker result by their declared timeout.
  • Remove the associated pending-task and worker-routing state on timeout.

Security changes

  • None.

Usability changes

  • Callers now receive a bounded remote timeout instead of a task that can remain pending indefinitely.

Tests/checks run

  • python -m pytest tests/test_compute/test_dispatch.py tests/test_stress/test_stress_dispatch.py -q — 29 passed.
  • make lint && make test — Ruff clean, mypy clean, 1106 passed, 2 skipped.
  • git diff --check master...HEAD — passed.
  • gitleaks detect --source . --no-git --redact --exit-code 1 — no leaks found.

Commits

  • f973283 Expire unanswered dispatched tasks

Risks / manual review notes

  • Low-risk dispatcher reliability change. Late worker results are ignored after their declared deadline.

Merge status

  • Not merged yet; awaiting GitHub checks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant