Skip to content

Replay duplicate activity polls by poll_request_id#6

Merged
rmcdaniel merged 1 commit into
mainfrom
copilot/fix-activity-poll-replay
May 15, 2026
Merged

Replay duplicate activity polls by poll_request_id#6
rmcdaniel merged 1 commit into
mainfrom
copilot/fix-activity-poll-replay

Conversation

@rmcdaniel
Copy link
Copy Markdown
Member

Fixes #5.

Summary

  • accept poll_request_id on activity-task polls and coordinate duplicate requests through an activity poll-request cache
  • replay only still-leased activity tasks and refresh cached payloads from live row state before redelivery
  • add focused feature coverage for duplicate activity poll_request_id redelivery

Testing

  • docker run --rm --network host -u 1000:1000 -e DB_CONNECTION=sqlite -e DB_DATABASE=/workspace/testbench.sqlite -e REDIS_HOST=127.0.0.1 -v /home/lab/workspace-hq/repos/server:/workspace -w /workspace composer:2 php ./vendor/bin/phpunit tests/Feature/WorkflowWorkerProtocolTest.php --filter poll_request

@rmcdaniel rmcdaniel merged commit f4e1ad7 into main May 15, 2026
4 of 5 checks passed
@rmcdaniel rmcdaniel deleted the copilot/fix-activity-poll-replay branch May 15, 2026 01:22
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.

Activity task can be leased and marked running before Python worker receives usable poll response

2 participants