Skip to content

Conversation

@markstory
Copy link
Member

This is a rough first pass at extracting the taskworker, scheduler and client libraries out of sentry. A few things are not complete yet:

  • There is no ability to ensure that producers flush during shutdown.
  • Lots of TODOs for getting redis/kafka connections from env vars
  • uv tooling is janky and will need more work to be correct in CI.

We'll still need some additions in sentry as silo mode behavior was removed when code was imported here.

This doesn't work at all yet, but I wanted to get the code imported in
one go.
- Add a MetricsBackend like we have in arroyo and our other client
  libraries.
- Attach metrics to the namespace so that it can be read in tasks.
Combine small modules together now that import cycles are gone
Replace django's timezone.now() with datetime.now(tz=UTC)
Needed to add UTC to lots of datetime logic to resolve timezone deltas
between frozen times and datetime.now(UTC)
TaskbrokerClientGet tests passing for TaskbrokerClientGet tests passing
for TaskbrokerClientGet tests passing for TaskbrokerClientGet tests
passing for TaskbrokerClientGet tests passing for TaskbrokerClientGet
tests passing for TaskbrokerClientGet tests passing for TaskbrokerClient
@codecov
Copy link

codecov bot commented Nov 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.88%. Comparing base (a82db4a) to head (8e9cb4a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #516   +/-   ##
=======================================
  Coverage   88.88%   88.88%           
=======================================
  Files          20       20           
  Lines        5893     5893           
=======================================
  Hits         5238     5238           
  Misses        655      655           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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