Commit Graph

120 Commits

Author SHA1 Message Date
Selwin Ong 02eb983e90 Bump version to 1.4.0 2020-05-13 08:10:29 +07:00
Selwin Ong add0b171ec Bump version to 1.3.0 2020-03-09 19:28:30 +07:00
Selwin Ong f18a951eec Bump version to 1.2.2 2020-01-31 21:43:00 +07:00
Selwin Ong 90e032cd64 Bump version to 1.2.1 2020-01-31 15:38:44 +07:00
Selwin Ong baa0cc268a
Job scheduling (#1163)
* First RQScheduler prototype

* WIP job scheduling

* Fixed Python 2.7 tests

* Added ScheduledJobRegistry.get_scheduled_time(job)

* WIP on scheduler's threading mechanism

* Fixed test errors

* Changed scheduler.acquire_locks() to instance method

* Added scheduler.prepare_registries()

* Somewhat working implementation of RQ scheduler

* Only call stop_scheduler if there's a scheduler present

* Use OSError rather than ProcessLookupError for PyPy compatibility

* Added `auto_start` argument to scheduler.acquire_locks()

* Make RQScheduler play better with timezone

* Fixed test error

* Added --with-scheduler flag to rq worker CLI

* Fix tests on Python 2.x

* More Python 2 fixes

* Only call `scheduler.start` if worker is run in non burst mode

* Fixed an issue where running worker with scheduler would fail sometimes

* Make `worker.stop_scheduler()` more resilient to errors

* worker.dequeue_job_and_maintain_ttl() should also periodically run maintenance tasks

* Scheduler can now work with worker in both burst and non burst mode

* Fixed scheduler logging message

* Always log scheduler errors when running

* Improve scheduler error logging message

* Removed testing code

* Scheduler should periodically try to acquire locks for other queues it doesn't have

* Added tests for scheduler.should_reacquire_locks

* Added queue.enqueue_in()

* Fixes queue.enqueue_in() in Python 2.7

* First stab at documenting job scheduling

* Remove unused methods

* Remove Python 2.6 logging compatibility code

* Remove more unused imports

* Added convenience methods to access job registries from queue

* Added test for worker.run_maintenance_tasks()

* Simplify worker.queue_names() and worker.queue_keys()

* Updated changelog to mention RQ's new job scheduling mechanism.
2020-01-04 10:14:52 +07:00
Selwin Ong a06421e125 Updated changelog 2019-12-16 17:56:28 +07:00
Selwin Ong a407bcfe36 Updated changelog 2019-12-16 17:56:05 +07:00
Selwin Ong f50e60d2f4 Updated CHANGES.md 2019-07-20 17:29:52 +07:00
Paul Robertson e1c135d4de add the ability to have the worker stop executing after a max amount of jobs (#1094)
* add the ability to have the worker stop executing after a max amount of jobs

* rename to max-jobs

* updated logging messages
2019-06-12 21:07:09 +07:00
Selwin Ong fca61d1e82 RQ 1.0 is released today 2019-04-06 09:29:53 +07:00
Selwin Ong c4cbb3af2f
RQ v1.0! (#1059)
* Added FailedJobRegistry.

* Added job.failure_ttl.

* queue.enqueue() now supports failure_ttl

* Added registry.get_queue().

* FailedJobRegistry.add() now assigns DEFAULT_FAILURE_TTL.

* StartedJobRegistry.cleanup() now moves expired jobs to FailedJobRegistry.

* Failed jobs are now added to FailedJobRegistry.

* Added FailedJobRegistry.requeue()

* Document the new `FailedJobRegistry` and changes in custom exception handler behavior.

* Added worker.disable_default_exception_handler.

* Document --disable-default-exception-handler option.

* Deleted worker.failed_queue.

* Deleted "move_to_failed_queue" exception handler.

* StartedJobRegistry should no longer move jobs to FailedQueue.

* Deleted requeue_job

* Fixed test error.

* Make requeue cli command work with FailedJobRegistry

* Added .pytest_cache to gitignore.

* Custom exception handlers are no longer run in reverse

* Restored requeue_job function

* Removed get_failed_queue

* Deleted FailedQueue

* Updated changelog.

* Document `failure_ttl`

* Updated docs.

* Remove job.status

* Fixed typo in test_registry.py

* Replaced _pipeline() with pipeline()

* FailedJobRegistry no longer fails on redis-py>=3

* Fixes test_clean_registries

* Worker names are now randomized

* Added a note about random worker names in CHANGES.md

* Worker will now stop working when encountering an unhandled exception.

* Worker should reraise SystemExit on cold shutdowns

* Added anchor.js to docs

* Support for Sentry-SDK (#1045)

* Updated RQ to support sentry-sdk

* Document Sentry integration

* Install sentry-sdk before running tests

* Improved rq info CLI command to be more efficient when displaying lar… (#1046)

* Improved rq info CLI command to be more efficient when displaying large number of workers

* Fixed an rq info --by-queue bug

* Fixed worker.total_working_time bug (#1047)

* queue.enqueue() no longer accepts `timeout` argument (#1055)

* Clean worker registry (#1056)

* queue.enqueue() no longer accepts `timeout` argument

* Added clean_worker_registry()

* Show worker hostname and PID on cli (#1058)

* Show worker hostname and PID on cli

* Improve test coverage

* Remove Redis version check when SSL is used

* Bump version to 1.0

* Removed pytest_cache/README.md

* Changed worker logging to use exc_info=True

* Removed unused queue.dequeue()

* Fixed typo in CHANGES.md

* setup_loghandlers() should always call logger.setLevel() if specified
2019-03-30 09:13:56 +07:00
Selwin Ong bf0b4308fd Bump version to 0.13.0 2018-12-15 11:14:23 +07:00
Selwin Ong 6a376191d9 Bump version to 0.12.0 2018-07-14 08:00:38 +07:00
Selwin Ong a5596caf42 Bump version to 0.11.0 2018-06-01 11:22:09 +07:00
Selwin Ong ca0d7ef9f1 Bump version to 0.10.0 2018-01-02 12:59:02 +07:00
Selwin Ong 44a0a7b972 Bump version to 0.9.2. 2017-11-21 16:53:44 +07:00
Selwin Ong e5de3dfbb5 Bump version to 0.9.1. 2017-11-03 13:00:40 +07:00
Selwin Ong 3c98175a4a Bump version to 0.9.0 2017-10-28 17:37:26 +07:00
Selwin Ong cc41bdfa65 Bump version to 0.8.2. 2017-09-05 10:57:52 +07:00
Selwin Ong 03c3f66ca7 Bump version to 0.8.1. 2017-07-28 15:52:48 +07:00
Selwin Ong fbe4cafe2a Updated changelog and tag v0.8. 2017-05-01 17:09:31 +07:00
Selwin Ong fe84828d72 Bump up version to 0.8.0 and updated changelog. 2017-04-29 21:18:21 +07:00
Selwin Ong 1ae10dd529 Bump version to 0.7.1. 2016-12-04 07:58:01 +07:00
Vincent Driessen 20e258f610 Bump to 0.7.0 2016-11-18 08:42:43 +01:00
Vincent Driessen 07adca6ca3 Bump dev version 2016-06-21 09:14:58 +02:00
Selwin Ong 636e34e55f Updated changelog. 2016-05-08 21:39:09 +07:00
Selwin Ong 7b1df1e878 Bump version to 0.6.0. 2016-05-08 21:31:55 +07:00
Selwin Ong c2f452c47a Update CHANGES.md 2015-10-08 18:15:08 +07:00
Vincent Driessen 319f98a36e Update changelog for 0.5.5 2015-08-25 09:08:36 +02:00
Vincent Driessen 807f649f6c Add changelog for 0.5.4 2015-07-08 09:11:05 +02:00
Vincent Driessen 72fdbaf509 Update changelog 2015-06-03 10:55:16 +02:00
Selwin Ong 8f9c507f12 Bump version to 0.5.3. 2015-06-01 11:00:36 +07:00
Vincent Driessen 8f7322ed10 This is 0.5.2 2015-04-14 09:10:53 +02:00
Vincent Driessen 5e57e97b4e Add changelog for 0.5.1. 2015-03-09 09:18:34 +01:00
Selwin Ong 008d72ff09 Documented new features in 0.5.0. 2015-01-30 14:39:42 +07:00
Vincent Driessen 052d0df4bf Update CHANGES. 2014-05-21 10:08:47 +02:00
Vincent Driessen 6644872273 Raise warning when using async Sentry transport. 2014-05-21 10:03:51 +02:00
Vincent Driessen 2314b62d8c Start release 0.4.6. 2014-05-21 09:59:29 +02:00
Vincent Driessen 0fbc9e4851 Release 0.4.5. 2014-05-08 13:56:57 +02:00
Vincent Driessen 972b367af4 Release 0.4.4. 2014-05-07 21:24:58 +02:00
Vincent Driessen c0567be69a Release 0.4.3. 2014-05-06 15:58:35 +02:00
Vincent Driessen ef9456ddbd Bump version to 0.4.2. 2014-04-28 08:31:09 +02:00
Vincent Driessen 415662d42c Bump version. 2014-04-22 22:21:37 +02:00
Vincent Driessen 39258e2c15 Release 0.4.0. 2014-04-22 16:10:19 +02:00
Vincent Driessen cb34acc279 Add rqinfo -X command.
This can be used to empty the failed queue right from the command line.
2014-04-14 11:33:38 +02:00
Vincent Driessen c106604f17 Add note that custom worker classes are now supported. 2014-01-09 13:01:20 +01:00
Vincent Driessen d08352b103 Update CHANGES. 2014-01-07 00:23:36 +01:00
Malthe Borch ba0b39a43b Unpickle job data lazily. This fixes issue #294. 2014-01-03 09:51:27 +01:00
Vincent Driessen 888d771d4d Merge pull request #287 from malthe/shed-times-dependency
Remove dependency on 'times' library (issue #286).
2014-01-02 23:10:04 -08:00
Vincent Driessen e1e2405150 Merge branch 'hotfix-0.3.13'
Conflicts:
	CHANGES.md
2013-12-17 12:30:12 +01:00