Skip to content

feat(taskbroker-client): expose task enqueue producer future#741

Open
lvthanh03 wants to merge 1 commit into
mainfrom
tony/apply-async-with-future
Open

feat(taskbroker-client): expose task enqueue producer future#741
lvthanh03 wants to merge 1 commit into
mainfrom
tony/apply-async-with-future

Conversation

@lvthanh03

@lvthanh03 lvthanh03 commented Jul 3, 2026

Copy link
Copy Markdown
Member

Refs STREAM-1309

Modifies TaskNamespace.send_task() to return the existing producer future, and adds Task.apply_async_with_future() for dispatching a task and also returning that producer future.

This lets callers coordinate task enqueue delivery; in the case of the spans buffer enqueueing the process_segment task, it needs to know that the produce succeeded before calling done_flush_segments.

@lvthanh03 lvthanh03 requested a review from a team as a code owner July 3, 2026 16:47
@linear-code

linear-code Bot commented Jul 3, 2026

Copy link
Copy Markdown

STREAM-1309

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