Releases: dymmond/asyncz
Releases · dymmond/asyncz
Version 0.13.1
Version 0.13.0
Added
- Multi-Processing safe mode.
Fixed
and
was mapped to the wrong trigger.- Some defaults had wrong module pathes.
- Missing export of NativeAsyncIOScheduler from schedulers.
Version 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.
Version 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
withUndefined
. 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.
Version 0.10.1
Added
- Decorated functions have now the
asyncz_tasks
attribute if Tasks are used in decorator mode without a providedid
.
Fixed
- Fix backward compatibility in passing functions via fn keyword to add_task
Version 0.10.0
Added
- Task are decorators now.
- Tasks can be added via add_task.
- Trigger can now overwrite
mistrigger_grace_time
viaallow_mistrigger_by_default
. - Pools can now overwrite
wait
and can setcancel_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.
Version 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
.
Version 0.8.3
Fixed
ref_to_obj
was not considering any functionality that could come from a decorator implementing thefn
.
What's Changed
- Remove esmerald contrib (no longer natively supported) by @tarsil in #62
- Fix ref to object by @tarsil in #63
Full Changelog: 0.8.2...0.8.3
Version 0.8.2
Version 0.8.1
Added
threadpool
to the internal mapping.