From e8055bce55bb004168b5787f89091057cf1f36c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Wed, 21 Sep 2022 01:56:32 +0300 Subject: Merged the Worker class into AsyncScheduler --- docs/versionhistory.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 559ee36..e86d486 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -6,9 +6,11 @@ APScheduler, see the :doc:`migration section `. **UNRELEASED** -- **BREAKING** Workers can no longer be run independently. Instead, you can run a - scheduler that only starts a worker but does not process schedules by passing - ``process_schedules=False`` to the scheduler +- **BREAKING** Workers were merged into schedulers. As the ``Worker`` and + ``AsyncWorker`` classes have been removed, you now need to pass + ``role=SchedulerRole.scheduler`` to the scheduler to prevent it from processing due + jobs. The worker event classes (``WorkerEvent``, ``WorkerStarted``, ``WorkerStopped``) + have also been removed. - **BREAKING** The synchronous interfaces for event brokers and data stores have been removed. Synchronous libraries can still be used to implement these services through the use of ``anyio.to_thread.run_sync()``. -- cgit v1.2.1