Commit Graph

112 Commits

Author SHA1 Message Date
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
Vincent Driessen aa55232151 Bump version to 0.3.13. 2013-12-17 12:28:57 +01:00
Vincent Driessen cf98591ca5 Merge branch 'hotfix-0.3.12'
Conflicts:
	CHANGES.md
	rq/worker.py
2013-12-16 15:03:37 +01:00
Vincent Driessen b5e1377023 Bump version to 0.3.12.
Conflicts:
	CHANGES.md
2013-12-16 15:01:01 +01:00
Malthe Borch c5a381fbe9 Remove dependency on 'times' library (see issue #286).
Basically, for the functionality needed, a dependency on 'times' (which
in turn depends on 'python-dateutil') seem unnecessary.
2013-12-11 10:47:42 +01:00
Vincent Driessen fa0e9e0f95 Update changelog. 2013-09-05 21:05:03 +02:00
Vincent Driessen 7bf572cf0b Update changelog. 2013-09-05 09:25:00 +02:00
Vincent Driessen 5d391e90a0 Update changelog. 2013-09-05 00:29:40 +02:00
Vincent Driessen 2da46565aa Add job dependencies to the changelog. 2013-09-03 14:18:16 +02:00