Skip to content

0.19.1 - Work it

Choose a tag to compare

@chrisguidry chrisguidry released this 15 Apr 21:04
· 99 commits to main since this release
531eed7

Worker-level dependencies!

async with Worker(docket, dependencies=[Depends(transaction), Retry(attempts=3)]:
    ...

You can now define dependencies on your worker that are merged with the dependencies of each task. This allows for adding cross-cutting/orthogonal concerns (instrumentation, observability, environment setup, etc) without repeating them for each task! Those worker-level dependencies can themselves have dependencies, including looking at the current task's task argument, task key, the current execution, or any other dependency.

More on this in the docs!

What's Changed

  • Bump pytest from 9.0.2 to 9.0.3 by @dependabot[bot] in #391
  • Add worker-level automatic task dependencies by @chrisguidry in #393
  • Bump codecov/codecov-action from 5 to 6 in the all-actions group by @dependabot[bot] in #375
  • Bump the all-dependencies group across 1 directory with 21 updates by @dependabot[bot] in #392

Full Changelog: 0.19.0...0.19.1