Skip to content

Releases: dymmond/asyncz

Version 0.13.1

07 Jan 16:12
0.13.1
bfd9409
Compare
Choose a tag to compare

Added

  • FileStore was added (simple synchronization via files in a directory).
  • with_lock was added to asyncz.file_locking.

Fixed

  • SQLAlchemyStore didn't pass extra arguments to create_engine.

Version 0.13.0

31 Dec 18:02
0.13.0
1cb909f
Compare
Choose a tag to compare

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

09 Oct 07:03
0.12.0
79a17f5
Compare
Choose a tag to compare

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

02 Aug 07:55
6e842cb
Compare
Choose a tag to compare

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.

Version 0.10.1

29 Jul 22:52
61e9508
Compare
Choose a tag to compare

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

Version 0.10.0

25 Jul 15:37
4ce58b4
Compare
Choose a tag to compare

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.

Version 0.9.0

25 Jul 15:36
01729cd
Compare
Choose a tag to compare

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

19 Jun 16:34
95b8526
Compare
Choose a tag to compare

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 #62
  • Fix ref to object by @tarsil in #63

Full Changelog: 0.8.2...0.8.3

Version 0.8.2

13 Jun 09:04
b96ba71
Compare
Choose a tag to compare

What's Changed

  • Add missing mistrigger to _setup by @tarsil in #61

Full Changelog: 0.8.1...0.8.2

Version 0.8.1

13 Jun 09:00
996c17e
Compare
Choose a tag to compare

Added

  • threadpool to the internal mapping.