Commit Graph

1528 Commits (a721db34b171fd38eb262c858cc5ca32cc954bfb)
 

Author SHA1 Message Date
秋葉 e40fc393b2 remove unused code ()
Selwin Ong 98fa81873b
Update README.md
Christopher Pickering d2e06e4785 Update index.md ()
added "import time"
Ted Summer 79a6fd7999 Fix timeout adding job to StartedJobRegistry ()
* 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
Ted Summer eed51df14a Fix usage example of queue.enqueue() ()
* Fix usage example of queue.enqueue()

* Refactor enqueue example
Selwin Ong f467e708f2 Updated leftover references to FailedQueue
Ted Summer da21a110b3 Fix docs on job attributes ()
Selwin Ong 0d593f40e1 Clarify the use of "args" and "kwargs" in queue.enqueue()
Selwin Ong 2af3d829b0 Updated docs to change "normal" to "default"
Selwin Ong a33ed3a019 Updated docs to change "normal" to "default"
Selwin Ong 7021cedaf9
Implemented Job.fetch_many ()
Mike Lissner 07317b62f3 Give better titles to documentation pages ()
* Fix title on workers page

* Fix jobs title

* Fix results title

* Fix title on overview page
Selwin Ong b51c786e5d Updated systemd docs
Selwin Ong 065943f0b4 Added systemd example
Selwin Ong c66f202460 Added docs about running workers in production
Selwin Ong ba8c338654 Updated RQ docs
Selwin Ong fca61d1e82 RQ 1.0 is released today
SSINGH a23e3736d8 Variable name mismatch ()
Should be `redis = Redis()`
Selwin Ong c4cbb3af2f
RQ v1.0! ()
* 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 ()

* 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… ()

* 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 ()

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

* Clean worker registry ()

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

* Added clean_worker_registry()

* Show worker hostname and PID on cli ()

* 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
Wolfgang Langner abf6881114 Fix queue default timeout bug. ()
Add test for queue default_timeout.
William Setzer 1f3c9f6e59 Delete .DS_Store ()
Remove OSX artifact from repo.
Selwin Ong 42d22c5220 Merge branch 'master' of github.com:rq/rq
Selwin Ong 147efc54dd Added anchor.js to docs
Wolfgang Langner 8fc987dc68 Make logging in worker consitent. ()
Switch some messages from warn to info because it is normal requested bahavior.
Chyroc d9798fd64f refactor: job status check ()
Chyroc 7eb95bf405 refactor: use try ImportError instead of py-version check ()
Selwin Ong 4b8e615644 Changed docs to use Github compatible code block markup
Selwin Ong fc8dd95377 Fixed CSS styles for code blocks.
Selwin Ong 7d6cccb654 Try out an alternate way to indicate code blocks in docs
Wolfgang Langner 7a6abb4738 Fix collections abc import deprecation warning. ()
* Fix collections abc import.
Prepare for 3.8 when it is deprecated.

* Fix Pyton 2.7 build.
Finnci 14db0ecd26 Update/add flag for description logging ()
* test workers

* indent

* add docs and add option to the cli

* rename flag for cli

* logging
Wolfgang Langner 972778d041 Fix run_tests to use pytest. ()
Update tox.ini envlist.
Wolfgang Langner 7893168c87 Remove Python 3.3 support. ()
* 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.
Selwin Ong bf0b4308fd Bump version to 0.13.0
Selwin Ong 22f004f7d6
Updated requirements.txt on Heroku docs
Samuel Colvin 2f35222ddb skip test_1_sec_shutdown with pypy ()
* skip test_1_sec_shutdown with pypy, fix 

* skip all HerokuWorkerShutdownTestCase with pypy
Darshan Rai ada2ad03ca modify zadd calls for redis-py 3.0 ()
* modify zadd calls for redis-py 3.0

redis-py 3.0 changes the zadd interface that accepts a single
mapping argument that is expected to be a dict.
https://github.com/andymccurdy/redis-py#mset-msetnx-and-zadd

* change FailedQueue.push_job_id to always push a str

redis-py 3.0 does not attempt to cast values to str and is left
to the user.

* remove Redis connection patching

Since in redis-py 3.0, Redis == StrictRedis class, we no longer
need to patch _zadd and other methods.
Ref: https://github.com/rq/rq/pull/1016#issuecomment-441010847
Selwin Ong 6559b0ffd7
Replace "timeout" argument in queue.enqueue() with "job_timeout" ()
Michael Abrahamsen d4261f165c fix typo - change -> chance ()
Selwin Ong 4d17d226f4 Document Job.fetch() and job attributes.
John Stowers eaf598d73c Pass job_id to death penalty class ()
This allows custom workers to use associated
custom Timeout classes and apply custom timeouts
or less messy death methods
Selwin Ong ad66d872f0 Fixed a unicode test.
Selwin Ong 47d291771f
SimpleWorker's ttl must always be longer than jobs. ()
Qingping Hou 051104b0ff support workder name override from config file ()
* support workder name override from config file

* update docs for NAME config

* Update workers.md
Selwin Ong e00ff97867
Fix heroku worker ()
* Attempt to fix HerokuWorker test.

* Fixed test_shutdown_double_sigrtmin

* Another attempt to fix test

* Another attempt to fix test

* Another attempt to fix test

* When work horse runs into an exception, raise that exception before calling os._exit()
Selwin Ong 25f2b75b1f Horse should exit with return code 1 if it raises an exception
Selwin Ong 4759c43067 horse should always call os._exit(0)
shikharsg cc19d1a89e added logging formatting options ()
* added logging formatting options

* added docs for log formatting options

* fixed naming format
Paul Robertson e86fb57366 add is_async property to queue ()
Aly Sivji a2f245a0c1 Change print statement to print function in docs ()