Commit Graph

1394 Commits

Author SHA1 Message Date
Igor Gnatenko 0a669f1f33 Include LICENSE in manifest (#1134) 2019-09-08 18:04:15 +07:00
Selwin Ong d1813cdff9 Fixed test errors caused by _sentry_trace_headers 2019-07-20 17:39:07 +07:00
Selwin Ong dc63b362e2 Bump version to 1.1.0 2019-07-20 17:33:05 +07:00
Selwin Ong f50e60d2f4 Updated CHANGES.md 2019-07-20 17:29:52 +07:00
Chyroc d0884be929 otp: reuse utcnow (#1115) 2019-07-05 10:44:28 +07:00
Selwin Ong f9d42e8a17
Added logging statements to handle_job_success and handle_job_failure (#1112) 2019-06-22 16:42:05 +07:00
Selwin Ong b14c4e288d
Added checks for 0 ttl (#1110) 2019-06-16 18:39:16 +07:00
Joe 8df4e8ecfa Update worker document for setproctitle feature (#1109)
* Replace procname with setproctitle

* Document process title feature

* Fix typo
2019-06-16 18:35:24 +07:00
Joe b52bad3ad0 Replace procname with setproctitle (#1108) 2019-06-16 15:41:27 +07:00
Selwin Ong 549648bd1b
rq info management command now cleans up registries when first run (#1107)
* rq info management command now cleans up registries when first run

* Deleted print statement

* Improve CLI test coverage

* Fixed CLI test on Linux
2019-06-15 10:19:34 +07:00
Selwin Ong 905824e8d8
Improve worker start/stop logging messages (#1105) 2019-06-12 21:26:22 +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 2baef02dbd
Update README.md 2019-06-07 21:19:34 +07:00
janierdavila d191adbeb9 Fixes disable-job-desc-logging flag on CLI (#1096)
PR #991 introduced this useful flag but it seems to have missed
passing this flag to the worker. This simple commit fixes that
issue.
2019-06-07 06:57:54 +07:00
Paul Robertson 077aa7d32e CI - test against py3.8 (#1095)
* test against py3.8

* switch to the matrix format
2019-06-07 06:57:15 +07:00
Selwin Ong 68c01bc537
Create FUNDING.yml 2019-05-30 17:29:45 +07:00
秋葉 e40fc393b2 remove unused code (#1092) 2019-05-30 17:13:03 +07:00
Selwin Ong 98fa81873b
Update README.md 2019-05-30 17:12:31 +07:00
Christopher Pickering d2e06e4785 Update index.md (#1089)
added "import time"
2019-05-18 11:40:11 +07:00
Ted Summer 79a6fd7999 Fix timeout adding job to StartedJobRegistry (#1086)
* Fix timeout adding job to StartedJobRegistry

* Fix prepare_job_execution handling neg timeout

* Add test for inf job timeout in StartedJobRegistry

* refactor(worker): simplify checking neg timeout
2019-05-18 11:39:45 +07:00
Ted Summer eed51df14a Fix usage example of queue.enqueue() (#1082)
* Fix usage example of queue.enqueue()

* Refactor enqueue example
2019-05-07 07:12:40 +07:00
Selwin Ong f467e708f2 Updated leftover references to FailedQueue 2019-05-07 06:56:15 +07:00
Ted Summer da21a110b3 Fix docs on job attributes (#1083) 2019-05-07 06:34:52 +07:00
Selwin Ong 0d593f40e1 Clarify the use of "args" and "kwargs" in queue.enqueue() 2019-04-14 18:31:28 +07:00
Selwin Ong 2af3d829b0 Updated docs to change "normal" to "default" 2019-04-14 18:26:41 +07:00
Selwin Ong a33ed3a019 Updated docs to change "normal" to "default" 2019-04-14 18:26:41 +07:00
Selwin Ong 7021cedaf9
Implemented Job.fetch_many (#1072) 2019-04-14 18:18:34 +07:00
Mike Lissner 07317b62f3 Give better titles to documentation pages (#1064)
* Fix title on workers page

* Fix jobs title

* Fix results title

* Fix title on overview page
2019-04-09 15:28:57 +07:00
Selwin Ong b51c786e5d Updated systemd docs 2019-04-07 17:22:06 +07:00
Selwin Ong 065943f0b4 Added systemd example 2019-04-07 17:06:01 +07:00
Selwin Ong c66f202460 Added docs about running workers in production 2019-04-07 16:32:29 +07:00
Selwin Ong ba8c338654 Updated RQ docs 2019-04-06 17:30:22 +07:00
Selwin Ong fca61d1e82 RQ 1.0 is released today 2019-04-06 09:29:53 +07:00
SSINGH a23e3736d8 Variable name mismatch (#1063)
Should be `redis = Redis()`
2019-04-06 09:22:52 +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
Wolfgang Langner abf6881114 Fix #1040 queue default timeout bug. (#1042)
Add test for queue default_timeout.
2019-02-23 14:46:26 +08:00
William Setzer 1f3c9f6e59 Delete .DS_Store (#1043)
Remove OSX artifact from repo.
2019-02-23 14:41:41 +08:00
Selwin Ong 42d22c5220 Merge branch 'master' of github.com:rq/rq 2019-02-05 18:06:58 +07:00
Selwin Ong 147efc54dd Added anchor.js to docs 2019-02-05 18:06:43 +07:00
Wolfgang Langner 8fc987dc68 Make logging in worker consitent. (#1030)
Switch some messages from warn to info because it is normal requested bahavior.
2019-01-30 06:55:54 +07:00
Chyroc d9798fd64f refactor: job status check (#1035) 2019-01-30 06:54:37 +07:00
Chyroc 7eb95bf405 refactor: use try ImportError instead of py-version check (#1034) 2019-01-30 06:54:00 +07:00
Selwin Ong 4b8e615644 Changed docs to use Github compatible code block markup 2019-01-23 20:38:30 +07:00
Selwin Ong fc8dd95377 Fixed CSS styles for code blocks. 2019-01-23 20:27:06 +07:00
Selwin Ong 7d6cccb654 Try out an alternate way to indicate code blocks in docs 2019-01-23 19:10:16 +07:00
Wolfgang Langner 7a6abb4738 Fix collections abc import deprecation warning. (#1032)
* Fix collections abc import.
Prepare for 3.8 when it is deprecated.

* Fix Pyton 2.7 build.
2019-01-22 07:53:42 +07:00
Finnci 14db0ecd26 Update/add flag for description logging (#991)
* test workers

* indent

* add docs and add option to the cli

* rename flag for cli

* logging
2019-01-22 07:53:14 +07:00
Wolfgang Langner 972778d041 Fix run_tests to use pytest. (#1033)
Update tox.ini envlist.
2019-01-22 07:39:43 +07:00
Wolfgang Langner 7893168c87 Remove Python 3.3 support. (#1031)
* Remove Python 3.3 support.
Redis >= 3.X does only support Python >=3.4.
Python 3.7 is no longer dev.

* Use dev for Python 3.7 build again.
2019-01-19 22:03:00 +07:00
Selwin Ong bf0b4308fd Bump version to 0.13.0 2018-12-15 11:14:23 +07:00