Asyncz

Latest version: v0.12.0

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

Scan your dependencies

Page 1 of 4

0.12.0

Added

- `shutdown` trigger.
- Tasks can have a lifecycle.
- NativeAsyncIOScheduler with async start/shutdown methods and some optimizations.

Fixed

- Raise correct exception when maximal instances are reached.
- Task instances are now per scheduler not per executor.

Changed

- Invalid executor init kwargs are not ignored anymore.

Removed

- MaxInterationsReached exception. It had no use and was broken from design.

0.11.0

Added

- Allow submitting paused tasks.
- Allow changing in-place attributes of tasks when submitting with `add_task`.
- Allow selecting logger (classical, loguru).
- Allow naming schedulers with an extra logger name.

Fixed

- `remove_all_tasks` didn't check the store of tasks when pending_tasks was used (stopped scheduler).

Changed

- Replace `UndefinedType` with `Undefined`. Shim provided for backwards compatibility.
- `add_task` has now more arguments with undefined as default.
- `pending_tasks` has now no more store alias in it.
- `tzlocal` is now optional.
- Tasks use the timezone of the scheduler for their triggers which require a timezone.
- `loguru` is now optional.

0.10.1

Added

- Decorated functions have now the `asyncz_tasks` attribute if Tasks are used in decorator mode without a provided `id`.

Fixed

- Fix backward compatibility in passing functions via fn keyword to add_task

0.10.0

Added

- Task are decorators now.
- Tasks can be added via add_task.
- Trigger can now overwrite `mistrigger_grace_time` via `allow_mistrigger_by_default`.
- Pools can now overwrite `wait` and can set `cancel_futures`.

Changed

- Task id can be None (decorator mode).
- Task have now pending attribute.
- Tasks work more independent of schedulers.

Removed

- `schedule_task` call (superseeded by add_task overloads).

Fixed

- `task_defaults` overwrite settings.
- Fix one-off tasks in background with add_task (before with asgi a misstrigger can happen because of a lag of > 1 second).
- Fix `add_store` call on stopped scheduler.

0.9.0

Added

- SQLAlchemy store
- ASGI integration

Changed

- Schedulers use now refcounting to track if it should startup/shutdown (for asgi, lifespan).
- Schedulers support now the async and sync context manager protocols.
- Improved typings.
- The default (builtin) plugins live now in `asyncz/scheduler/defaults.py`.

0.8.3

Fixed

- `ref_to_obj` was not considering any functionality that could come from a decorator implementing the `fn`.

What's Changed
* Remove esmerald contrib (no longer natively supported) by tarsil in https://github.com/dymmond/asyncz/pull/62
* Fix ref to object by tarsil in https://github.com/dymmond/asyncz/pull/63

**Full Changelog**: https://github.com/dymmond/asyncz/compare/0.8.2...0.8.3

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.