-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat(taskworker): Better Testing Support #736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
george-sentry
merged 28 commits into
main
from
george/push-taskbroker/testing-activations-custom-sizes
Jul 1, 2026
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
64c2b64
Allow Specifying Minimum Sizes for Testing Activations
george-sentry 91d294a
Change Activation Size Arg. from KB to Bytes
george-sentry 5d5f3f9
Merge branch 'main' of https://github.com/getsentry/taskbroker into g…
george-sentry 61c86bf
Use Result Queue Size for Batches
george-sentry 2115370
Log Activations for Tracing
george-sentry f13cc2d
Fix Import Issue
george-sentry 4198a1c
Improve Logging
george-sentry 2ec9369
Fix Enqueued Log
george-sentry 4fc8da7
Add Processing Deadline Duration Override
george-sentry aa2c430
Make Durations a List
george-sentry e3fd3e4
Don't Randomly Select Bytes / Seconds
george-sentry 8fbcf3d
Fix Subsecond Duration
george-sentry e2d907e
Remove Structured Logging Junk
george-sentry 8671882
Register Canary Task w/All Namespaces
george-sentry dea4cb1
Merge branch 'main' of https://github.com/getsentry/taskbroker into g…
george-sentry 3cfe3f2
Clarify that Seconds Increases, Doesn't Replace Default Processing De…
george-sentry 4787e49
Update Batch Size Equals Concurrency
george-sentry 9b1cf12
Fix Worker Tests
george-sentry 8136a48
Fix Canary Task Tests
george-sentry 91963ff
Prefix Canary Task to Avoid Name Collisions
george-sentry 15d3866
Merge branch 'main' of https://github.com/getsentry/taskbroker into g…
george-sentry b1a2ce0
Merge branch 'george/push-taskbroker/testing-activations-custom-sizes…
george-sentry 469269d
Remove Unused `_result_queue_maxsize` Field
george-sentry 266a5f1
Basic Seconds / Bytes Validation
george-sentry 08b5b03
Merge branch 'main' of https://github.com/getsentry/taskbroker into g…
george-sentry b9e910e
Add `internal` Namespace w/`canary_task` to Every App
george-sentry f3513ae
Fix Bad Validation
george-sentry df12e16
Prevent Users from Creating `internal` Namespace
george-sentry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from __future__ import annotations | ||
|
|
||
| import logging | ||
| from time import sleep | ||
|
|
||
| CANARY_TASK_NAME = "canary_task" | ||
|
|
||
| logger = logging.getLogger(__name__) | ||
|
|
||
|
|
||
| def canary_task() -> None: | ||
| logger.info("Running canary task...") | ||
| sleep(0.1) | ||
| print("Done running canary task!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.