Skip to content

Conversation

@james-mcnulty
Copy link
Member

See this PR.

@linear
Copy link

linear bot commented Jan 3, 2026

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedJan 5, 2026, 10:56 PM

@james-mcnulty james-mcnulty changed the title [STREAM-640] Push-Based Broker / Worker POC [STREAM-640] Push-Based Broker / Worker POC Protos Jan 3, 2026

# Generated bindings
/py/sentry_protos/*
# /py/sentry_protos/*
Copy link
Member

Choose a reason for hiding this comment

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

Why is this changing?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is just so I can use this repository instead of the official package when building Sentry for testing purposes. If I don't include the generated code it doesn't work, but it will be undone in the final version!

@@ -0,0 +1,20 @@
syntax = "proto3";

package sentry_protos.taskworker.v1;
Copy link
Member

Choose a reason for hiding this comment

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

Could we keep these in the taskbroker.v1 package? It is likely that these protos will change alongside those ones.

Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes 👍

// If fetch_next is provided, receive a new task in the response
optional FetchNextTask fetch_next_task = 3;

string address = 4;
Copy link
Member

Choose a reason for hiding this comment

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

What kind of address is this? A comment could help here.

@@ -0,0 +1 @@
__version__ = "0.4.10"
Copy link
Member

Choose a reason for hiding this comment

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

Until this point we've not included python generated code in the repository. Instead we generate the python bindings when building a packaged release.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yepp, this is temporary so that I can use this repository as the source for the sentry-protos package in sentry.

// If fetch_next is provided, receive a new task in the response
optional FetchNextTask fetch_next_task = 3;

string address = 4;
Copy link
Member

Choose a reason for hiding this comment

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

This should be optional if you're adding it to the existing version. Otherwise it might break services that aren't sending this address through.

Copy link
Member Author

Choose a reason for hiding this comment

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

Got it. I think this is actually unnecessary, so it'll likely be gone in the final version anyways.

// Update the state of a task with execution results.
rpc SetTaskStatus(SetTaskStatusRequest) returns (SetTaskStatusResponse) {}

// Add a worker to the broker's inner worker pool.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Add a worker to the broker's inner worker pool.
// Register a worker as able to receive tasks from a broker.

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.

4 participants