summaryrefslogtreecommitdiff
path: root/tests/test_schedulers.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged the Worker class into AsyncSchedulerAlex Grönholm2022-09-211-10/+12
|
* Major refactoringAlex Grönholm2022-09-211-21/+15
| | | | | | | | - Made SyncScheduler a synchronous wrapper for AsyncScheduler - Removed workers as a user interface - Removed synchronous interfaces for data stores and event brokers and refactored existing implementations to use the async interface - Added the current_async_scheduler contextvar - Added job executors
* Changed the scheduler API to require an explicit start callAlex Grönholm2022-09-041-4/+40
|
* Fixed flaky testAlex Grönholm2022-08-171-1/+1
|
* Formatted all code to fit within Black's 88 column limitAlex Grönholm2022-08-171-1/+2
|
* Added job expiration timesAlex Grönholm2022-08-131-5/+58
| | | | | Scheduled jobs no longer retain their results. All job outcomes are now logged by the workers. Workers, rather than data stores, are now responsible for emitting the JobReleased event.
* Added get_schedules() methods to the scheduler classesAlex Grönholm2022-08-091-0/+34
|
* Renamed the job_info contextvar into current_jobAlex Grönholm2022-08-091-3/+3
|
* Made the apscheduler.events module private and re-exported its codeAlex Grönholm2022-07-311-8/+6
|
* Made the apscheduler.context module private and re-exported its codeAlex Grönholm2022-07-301-1/+3
|
* Made the apscheduler.structures module private and re-exported its codeAlex Grönholm2022-07-301-2/+8
|
* Made the apscheduler.enums and apscheduler.exceptions modules private and ↵Alex Grönholm2022-07-301-2/+1
| | | | re-exported their code
* Changed get_schedule() to raise ScheduleLookupError when the target schedule ↵Alex Grönholm2022-07-301-2/+22
| | | | isn't found
* Improved the scheduler lifecycle managementAlex Grönholm2022-07-271-0/+22
| | | | Both sync and async schedulers now have consistently working stop() and wait_until_stopped() methods.
* Added support for starting the sync scheduler (and worker) without the ↵Alex Grönholm2022-07-191-26/+14
| | | | context manager
* Switched to Black for code formattingAlex Grönholm2022-04-201-65/+105
|
* Fixed mypy errors in testsAlex Grönholm2022-02-151-2/+4
|
* Upgraded syntax and switched linting over to pre-commit.ciAlex Grönholm2022-01-021-3/+4
| | | | Linting checks are now run by pre-commit.ci instead of GitHub Actions.
* Implemented context-local variables for running jobsAlex Grönholm2021-09-211-0/+54
|
* Implemented schedule-level jitterAlex Grönholm2021-09-211-1/+85
| | | | Structures now keep enums, timedeltas and frozensets as-is. The MongoDB store was modified to use a custom type registry to handle this.
* Added scheduler methods for creating jobs directly w/o schedulesAlex Grönholm2021-09-131-5/+80
|
* Switched tests to Python 3.10 style annotationsAlex Grönholm2021-09-131-3/+2
|
* Improved the event subscription systemAlex Grönholm2021-09-121-2/+2
| | | | The subscribe() method now returns a subscription which has the unsubscribe() method in itself.
* Implemented task accountingAlex Grönholm2021-09-061-3/+13
| | | | The maximum number of concurrent jobs for a given task is now enforced if set.
* Switched to the src/ layoutAlex Grönholm2021-08-291-0/+1
|
* Overhauled the data store and event dispatch systemsAlex Grönholm2021-08-291-34/+89
|
* Fixed isort errorsAlex Grönholm2021-02-241-1/+0
|
* Implemented data store sharing and proper async supportAlex Grönholm2021-02-241-0/+59
|
* Added the first usable scheduler, worker and datastore implementationsAlex Grönholm2020-09-201-1026/+0
|
* Dropped support for Python < 3.5Alex Grönholm2019-07-191-14/+5
| | | | Fixes #259.
* Removed the Qt schedulerAlex Grönholm2019-07-191-20/+0
|
* Replaced @yield_fixture with @fixtureAlex Grönholm2019-03-181-5/+5
| | | | @yield_fixture has been deprecated for a while.
* Removed skipping of Gevent tests on Python 3.7Alex Grönholm2019-03-181-2/+0
| | | | Recent versions of Gevent now work properly with Python 3.7.
* Added Python 3.7 compatibilityAlex Grönholm2018-08-151-1/+5
|
* Backtracked on enum useAlex Grönholm2016-06-131-3/+3
| | | | Use traditional integer constants instead for now.
* Finished up the pause/resume scheduler feature w/ docsAlex Grönholm2016-06-131-137/+89
| | | | The scheduler will now no longer try to access job stores before it's been started.
* Added the ability to pause and resume job processing in the schedulerAlex Grönholm2016-04-101-183/+216
| | | | Closes #21
* Move the wakeup() call directly to BaseScheduler.start()Alex Grönholm2016-04-101-19/+0
| | | | The start() call was made non-abstract, as it's no longer necessary to implement an overridden version on all job stores.
* Added EVENT_JOB_SUBMITTED and EVENT_JOB_MAX_INSTANCES eventsAlex Grönholm2016-04-021-1/+26
|
* Fixed flake8 complaintsAlex Grönholm2016-01-221-5/+15
|
* Small test cleanupsAlex Grönholm2016-01-071-14/+1
|
* Replaced custom log capture fixture with pytest-catchlogAlex Grönholm2016-01-071-22/+17
|
* Changed cleanup requests in fixtures into yield_fixturesAlex Grönholm2016-01-071-42/+31
|
* Improved PEP 8 and PEP 257 compliancyAlex Grönholm2015-12-111-46/+73
| | | | Moved from the previous 120 column limit to PEP 8 compliant 99 column limit.
* Replaced six.u('') with u''Alex Grönholm2015-12-101-3/+3
|
* Fixed minor issues with testsAlex Grönholm2015-10-011-3/+2
|
* fixes add_executor while scheduler is running.Sylvain Duchesne2015-08-141-1/+2
|
* Fixed BlockingScheduler, BackgroundScheduler and GeventScheduler incorrectly ↵Brendan McCollam2014-07-151-0/+20
| | | | waiting MAX_WAIT_TIME when wait_seconds is 0
* Fixed falsely passing tests and the bugs they uncovered in BaseSchedulerAlex Grönholm2014-07-011-15/+15
|
* Handle naive datetimes passed as next_run_timeBrendan McCollam2014-06-271-7/+11
|