Skip to content

feat: Add branch to use taskbroker-client#110001

Merged
markstory merged 7 commits intomasterfrom
chore-use-taskbroker-client
Mar 10, 2026
Merged

feat: Add branch to use taskbroker-client#110001
markstory merged 7 commits intomasterfrom
chore-use-taskbroker-client

Conversation

@markstory
Copy link
Member

Add branches that let us opt-in to using taskbroker-client in deployments via environment variables.

Refs STREAM-610

Add branches that let us opt-in to using taskbroker-client in
deployments via environment variables.

Refs STREAM-610
Fix type errors in sentry.taskworker, there are likely more.
@linear-code
Copy link

linear-code bot commented Mar 5, 2026

use some cheatcodes to get around mypy
There are instanceof checks in the scheduler that we need to work
around.
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 7, 2026
@markstory markstory marked this pull request as ready for review March 7, 2026 02:35
@markstory markstory requested a review from a team as a code owner March 7, 2026 02:35
Copy link
Contributor

@cursor cursor bot left a comment

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 2 potential issues.

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

runner = ScheduleRunner(app, run_storage)
for key, schedule_data in settings.TASKWORKER_SCHEDULES.items():
runner.add(key, schedule_data)
with managed_bgtasks(role="taskworker-scheduler"):
Copy link
Member

Choose a reason for hiding this comment

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

Would it be worth it to move these two different code paths into separate files and import them here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that would be a good idea if this was going to stick around for a long time. I'm hoping that these branches only exist for a week or so to complete the rollout.

@markstory markstory merged commit dbb70e4 into master Mar 10, 2026
76 checks passed
@markstory markstory deleted the chore-use-taskbroker-client branch March 10, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants