Streaq

Latest version: v0.7.0

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.7.0

What's Changed
* pipelining, idle task reclaiming by Graeme22 in https://github.com/tastyware/streaq/pull/14
- Idle tasks are now re-enqueued by workers with a running scheduler process. This gives stronger pessimistic execution guarantees when eg a worker shuts down suddenly and doesn't get time to handle a signal.
- Tasks can now be pipelined (so results of one task can be fed into another):
python
worker.task()
async def double(ctx: WrappedContext[Context], val: int) -> int:
return val * 2

worker.task()
async def is_even(ctx: WrappedContext[Context], val: int) -> bool:
return val % 2 == 0

async with worker:
task = await double.enqueue(3).then(is_even)
print(await task.result())

This is useful for ETL pipelines or similar tasks, where each task builds upon the result of the previous one. For pipelined tasks, positional arguments must all come from the previous task (tuple outputs will be unpacked), and any additional arguments can be passed as kwargs to `then()`.

**Full Changelog**: https://github.com/tastyware/streaq/compare/v0.6.2...v0.7.0

0.6.2

What's Changed
* Add by ID task fns for abort, status, info, result by Graeme22 in https://github.com/tastyware/streaq/pull/13

**Full Changelog**: https://github.com/tastyware/streaq/compare/v0.6.1...v0.6.2

0.6.1

What's Changed
* Better middleware (wrapped functions instead of context managers) by Graeme22 in https://github.com/tastyware/streaq/pull/11

**Full Changelog**: https://github.com/tastyware/streaq/compare/v0.6.0...v0.6.1

0.6.0

What's Changed
* restructure health checks, optimize scheduler by Graeme22 in https://github.com/tastyware/streaq/pull/10
* using sets to represent the task DAG instead of a single key which has to be constantly serialized/deserialized

**Full Changelog**: https://github.com/tastyware/streaq/compare/v0.5.3...v0.6.0

0.5.3

What's Changed
* Narrower scope for task middleware (allows for handling exceptions)

**Full Changelog**: https://github.com/tastyware/streaq/compare/v0.5.2...v0.5.3

0.5.2

What's Changed
* add task priorities by Graeme22 in https://github.com/tastyware/streaq/pull/9
* now at 95%+ test coverage

**Full Changelog**: https://github.com/tastyware/streaq/compare/v0.5.1...v0.5.2

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.