Skip to content

ref(workerchild): Allow user to specify if futures should be awaited#729

Merged
bmckerry merged 2 commits into
mainfrom
ben/remove-passthru-mode
Jun 24, 2026
Merged

ref(workerchild): Allow user to specify if futures should be awaited#729
bmckerry merged 2 commits into
mainfrom
ben/remove-passthru-mode

Conversation

@bmckerry

@bmckerry bmckerry commented Jun 24, 2026

Copy link
Copy Markdown
Member

In #720 I made tasks that produced messages immediately have a ProcessingResult placed in the results queue, without actually requiring their futures to succeed.

After #727, we should look into re-enabling awaiting futures. This PR allows the user to specify whether futures should be awaited when the TaskWorker class is instantiated (defaulting to the current behaviour of not awaiting futures).

@bmckerry bmckerry requested a review from a team as a code owner June 24, 2026 13:10
@bmckerry bmckerry changed the title ref(workerchild): remove passthrough option on future resolution ref(workerchild): Allow user to specify if futures should be awaited Jun 24, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6a02bbf. Configure here.

Comment thread clients/python/src/taskbroker_client/worker/worker.py
Comment thread clients/python/src/taskbroker_client/worker/worker.py
@bmckerry bmckerry force-pushed the ben/remove-passthru-mode branch from 6a02bbf to 6e48889 Compare June 24, 2026 13:51
Comment thread clients/python/src/taskbroker_client/worker/workerchild.py
@bmckerry bmckerry merged commit d648742 into main Jun 24, 2026
27 checks passed
@bmckerry bmckerry deleted the ben/remove-passthru-mode branch June 24, 2026 14:11
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.

2 participants