Skip to content

feat(taskbroker): Create Worker Service#186

Merged
james-mcnulty merged 2 commits intomainfrom
george/push-taskbroker/create-worker-service
Mar 17, 2026
Merged

feat(taskbroker): Create Worker Service#186
james-mcnulty merged 2 commits intomainfrom
george/push-taskbroker/create-worker-service

Conversation

@james-mcnulty
Copy link
Member

@james-mcnulty james-mcnulty commented Mar 16, 2026

Linear

STREAM-819

Description

Currently, taskworkers pull tasks from taskbrokers via RPC. This approach works, but has some drawbacks. Therefore, we want taskbrokers to push tasks to taskworkers instead. Read this page on Notion for more information.

Each taskworker now has its own service with a PushTask method that accepts a task to be executed.

Details

  • Adds WorkerService service with PushTask method
  • Adds PushTaskRequest and PushTaskResponse messages

@james-mcnulty james-mcnulty requested a review from a team as a code owner March 16, 2026 22:40
@linear-code
Copy link

linear-code bot commented Mar 16, 2026

@github-actions
Copy link

github-actions bot commented Mar 16, 2026

The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedMar 16, 2026, 10:41 PM

@james-mcnulty james-mcnulty changed the title [STREAM-818] Create Worker Service [STREAM-819] Create Worker Service Mar 16, 2026
@james-mcnulty james-mcnulty changed the title [STREAM-819] Create Worker Service feat(taskbroker): Create Worker Service Mar 16, 2026
@james-mcnulty james-mcnulty changed the title feat(taskbroker): Create Worker Service [STREAM-819] feat(taskbroker): Create Worker Service Mar 16, 2026
@james-mcnulty james-mcnulty changed the title [STREAM-819] feat(taskbroker): Create Worker Service feat(taskbroker): Create Worker Service Mar 16, 2026
}

message PushTaskRequest {
TaskActivation task = 1;

Choose a reason for hiding this comment

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

Are you using the TaskActivation because GetTaskResponse uses it ?
Do you know TaskActivation is intentionally reused between Kafka and the broker or whether that was a coincidence ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Using it because GetTaskResponse uses it. Not sure about the Kafka thing...

@james-mcnulty james-mcnulty merged commit 7873851 into main Mar 17, 2026
12 checks passed
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