Skip to content

fix(fleet-queue): align job timeout, lock TTL, and worker sleep - #68

Open
tiweb442 wants to merge 1 commit into
Geda173:363-fleet-queue-orderingfrom
tiweb442:fix/1413-fleet-queue-hardening
Open

fix(fleet-queue): align job timeout, lock TTL, and worker sleep#68
tiweb442 wants to merge 1 commit into
Geda173:363-fleet-queue-orderingfrom
tiweb442:fix/1413-fleet-queue-hardening

Conversation

@tiweb442

Copy link
Copy Markdown

Summary

Small hardening on top of the fleet arrival queue work in #1413 (addresses remaining responsiveness / large-battle concerns raised on #817):

  • Raise ProcessFleetArrival timeout 120 → 600s and destination Cache::lock TTL 180 → 600s so a long battle cannot be killed while still holding the lock
  • Raise $tries 3 → 10 so lock-contention release(30) loops survive longer battles
  • Queue worker: --sleep=0.5 --timeout=600 for snappier delayed arrivals and matching worker kill timeout

Test plan

  • Confirm queue worker starts with new flags in docker
  • Existing FleetArrivalQueueTest still passes
  • Manual: dispatch a mission and confirm it processes within ~1s of arrival

Made with Cursor

Raise ProcessFleetArrival timeout and destination lock TTL to 600s so
large battles are not killed mid-lock, allow more lock-contention retries,
and poll the queue every 0.5s for snappier delayed arrivals.

Co-authored-by: Cursor <cursoragent@cursor.com>
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