celery-heimdall
celery-heimdall copied to clipboard
v2.0.0
- [x] Full typing
- [x] Isolated heimdall-specific changes as much as possible on a namespace on the task, to minimize conflicts with other Task extensions
- [x] Early & Late locking, allowing you to control if locks are taken at apply_async() or at the time the task is run, or both. Allows locking when not using apply_async/delay, such as when using send_task().
- [ ] Re-implemented rate-limiting
- [ ] Tracing
- [x] Minimal, better-suited lock implementation instead of using the one from redis-py. Removed any possibility of blocking, which is an anti-pattern in docker.
- [ ] Allow auto-retry on lock conflicts at call time.
- [x] Code linting
Codecov Report
Attention: Patch coverage is 84.91620% with 27 lines in your changes missing coverage. Please review.
Project coverage is 77.62%. Comparing base (
43727fa) to head (c32d926). Report is 15 commits behind head on main.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| celery_heimdall/task.py | 90.81% | 9 Missing :warning: |
| celery_heimdall/config.py | 0.00% | 8 Missing :warning: |
| celery_heimdall/lock.py | 73.07% | 7 Missing :warning: |
| celery_heimdall/rate.py | 93.18% | 3 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #10 +/- ##
===========================================
+ Coverage 58.74% 77.62% +18.88%
===========================================
Files 7 6 -1
Lines 286 219 -67
===========================================
+ Hits 168 170 +2
+ Misses 118 49 -69
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 77.62% <84.91%> (?) |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.