Skip to content

feat(tasks) Add taskbroker-client dependency and cutover setting#109576

Merged
markstory merged 4 commits intomasterfrom
feat-taskbroker-client
Mar 3, 2026
Merged

feat(tasks) Add taskbroker-client dependency and cutover setting#109576
markstory merged 4 commits intomasterfrom
feat-taskbroker-client

Conversation

@markstory
Copy link
Member

  • Add the taskbroker-client library
  • Add a django setting that will be used to switch over deployments to the new client libraries.

Refs STREAM-610

- Add the taskbroker-client library
- Add a django setting that will be used to switch over deployments to
  the new client libraries.

Refs STREAM-610
@markstory markstory requested a review from a team as a code owner February 27, 2026 17:33
@linear
Copy link

linear bot commented Feb 27, 2026

@markstory markstory requested a review from a team February 27, 2026 17:33
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 27, 2026
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 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Boolean setting stored as raw string from getenv
    • Changed TASKWORKER_USE_LIBRARY to explicitly check if the environment variable equals '1', ensuring proper boolean evaluation instead of truthy string evaluation.

Create PR

Or push these changes by commenting:

@cursor push 67f0548961
Preview (67f0548961)
diff --git a/src/sentry/conf/server.py b/src/sentry/conf/server.py
--- a/src/sentry/conf/server.py
+++ b/src/sentry/conf/server.py
@@ -834,7 +834,7 @@
 TASKWORKER_ROUTES = os.getenv("TASKWORKER_ROUTES")
 
 # Used to switch from sentry.taskworker to taskbroker_client - Temporary
-TASKWORKER_USE_LIBRARY = os.getenv("TASKWORKER_USE_LIBRARY")
+TASKWORKER_USE_LIBRARY = os.getenv("TASKWORKER_USE_LIBRARY") == "1"
 
 # The list of modules that workers will import after starting up
 # Taskworkers need to import task modules to make tasks
This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

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 1 potential issue.

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

@markstory markstory merged commit 3fbce38 into master Mar 3, 2026
78 checks passed
@markstory markstory deleted the feat-taskbroker-client branch March 3, 2026 16:58
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