1538 Commits (492e77d86df03ce343167a126cbf99f79a34c173)
 

Author SHA1 Message Date
John Stowers eaf598d73c Pass job_id to death penalty class (#936)
This allows custom workers to use associated
custom Timeout classes and apply custom timeouts
or less messy death methods
6 years ago
Selwin Ong ad66d872f0 Fixed a unicode test. 6 years ago
Selwin Ong 47d291771f
SimpleWorker's ttl must always be longer than jobs. (#1002) 6 years ago
Qingping Hou 051104b0ff support workder name override from config file (#947)
* support workder name override from config file

* update docs for NAME config

* Update workers.md
6 years ago
Selwin Ong e00ff97867
Fix heroku worker (#993)
* 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()
6 years ago
Selwin Ong 25f2b75b1f Horse should exit with return code 1 if it raises an exception 6 years ago
Selwin Ong 4759c43067 horse should always call os._exit(0) 6 years ago
shikharsg cc19d1a89e added logging formatting options (#979)
* added logging formatting options

* added docs for log formatting options

* fixed naming format
6 years ago
Paul Robertson e86fb57366 add is_async property to queue (#982) 6 years ago
Aly Sivji a2f245a0c1 Change print statement to print function in docs (#985) 6 years ago
Selwin Ong 6a376191d9 Bump version to 0.12.0 7 years ago
chevell c2b939d2df Replace 'async' keyword with 'is_async' for Queue objects (#977)
* Replaced async keyword with is_async in the Queue class to fix reserved keyword syntax errors in Python 3.7

* Updated tests to use is_async keyword when instantiating Queue objects

* Updated docs to reference is_async keyword for Queue objects

* Updated tox.ini, setup.py and .travis.yml with references to Python 3.7
7 years ago
Patrick 9c32a80d11 Windows Clarification (#967)
You can use WSL and run RQ and Redis on Windows by running them in a bash shell within windows.
7 years ago
Selwin Ong a5596caf42 Bump version to 0.11.0 7 years ago
Theofanis Despoudis 875cc27c2f #908 Using a timeout string value for job works (#955)
Fixes https://github.com/rq/rq/issues/908
7 years ago
Theofanis Despoudis d6b12c2402 Issue 872 (#954)
* Fixes #872 - Use -1 to indicate infinite ttl

* Fixes #872 Restored comma

* #872 Code review fix
7 years ago
Selwin Ong 531fde8e3c worker.main_work_horse should always return 0 7 years ago
Selwin Ong 0a47717fd2
Clarifying "timeout" argument in docs 7 years ago
Thomas Kriechbaumer 3133d94b58 add periodic worker heartbeats (#945)
* add periodic worker heartbeats

fixes #944

* improve worker default option handling
7 years ago
Selwin Ong 63a04d275e Use dbsize() to test for empty Redis database 7 years ago
Theofanis Despoudis bc8d4a087a Fixes issue #934 - Documented Queue.delete (#951)
* Fixes issue #934 - Documented Queue.delete

Fixes issue #934 - Code review fix

* Minor doc update
7 years ago
Selwin Ong 8b57842ea3 Modified docs to use emphasize the best way to configure exception handlers. 7 years ago
Selwin Ong c639018fb9 Registry objects can be instantiated by passing a queue object. 7 years ago
Selwin Ong 0ec8030d28 Document rq worker command arguments. 7 years ago
stj 487ef72f21 Define redis key prefix as class variable (#939)
* Define redis key prefix as class variable

Some prefixes were hardcoded in several places. This made it hard to
use custom prefixes via subclasses.

Resolves #920

* fixup! Define redis key prefix as class variable
7 years ago
Selwin Ong 936f2f19f6 Fixed broken image link in docs. 7 years ago
Selwin Ong 28bbeca66a Add docs folder. 7 years ago
Christophe Olinger a6eb5d37ee Delete dependents of job explicitely (#916)
* Initial take on delete_dependents

* Add tests including corner cases

* No need to canel dependents since they are not in a queue yet anyway

* The dependents keys can be deleted in all cases

* Update tests to included saved jobs in the deletion tests

* Correctly use pipeline in cancel method

* Unused connection

* Include dependents into dict format of job

* Add TODO

* Address comments from selwin

* Delete dependents key in redis if delete_dependents is called on its own

* Address recent comments from selwin

* Small change to trigger travis

* Remove TODO referring to canceled job state

* Remove dependent_ids from to_dict

* Address recent comments from selwin
7 years ago
Łukasz Wałejko 0a0e37bc50 Added pytest to dev-dependencies (#923) 7 years ago
Selwin Ong ce94d6e3a9
Added codecov badge 7 years ago
Selwin Ong c8dd92d18b
Install codecov 7 years ago
Selwin Ong 95f80ff4fe
Updated TravisCI badge 7 years ago
Selwin Ong afbbe47dbb Merge branch 'master' of github.com:nvie/rq 7 years ago
Vincent Driessen e0cca18d31 Test 7 years ago
Selwin Ong 17df38badb
Remove caniusepython3 badge 7 years ago
Selwin Ong 995492878d Added v0.10.0 release notes.; 7 years ago
Selwin Ong ca0d7ef9f1 Bump version to 0.10.0 7 years ago
Nikita Lyubchich a3eb6475dc Add description param to @job decorator (#912)
After using `@job` decorator for a function that takes a long string, in RQ worker I got printed all the args/kwargs via `job.get_call_string()`.

To get this overridden, I added `description` argument to the decorator.

I decided not to put this in `delay` method because it's may be currently be used by end user.
7 years ago
Selwin Ong 7a3c85f185
Added the ability to fetch workers by queue (#911)
* job.exc_info is now compressed.

* job.data is now stored in compressed format.

* Added worker_registration.unregister.

* Added worker_registration.get_keys().

* Modified Worker.all(), Worker.all_keys() and Worker.count() to accept "connection" and "queue" arguments.
7 years ago
John Lucas 34c403ec8d Add meta to decorator, move depends_on + at_front to decorator (#892) 7 years ago
Samuel Colvin df571e14fd improve logging in worker.py (#902)
* improve logging in worker

* tests for log_result_lifespan
7 years ago
Selwin Ong f500186f3d
Job compression (#907)
job.exc_info and job.data is now stored in compressed format in Redis.

* job.data is now stored in compressed format.
7 years ago
Selwin Ong 44a0a7b972 Bump version to 0.9.2. 7 years ago
vanife ff36e0656e Fixed an issue where `birth` not present in Redis (#901)
* Fixed an issue where `birth` not present in Redis

Fixed an issue where worker.refresh() may fail if `birth` is not present in Redis

* added test coverage
7 years ago
Selwin Ong e5de3dfbb5 Bump version to 0.9.1. 7 years ago
Selwin Ong 7b9c3b6b66 Fixed an issue where worker.refresh() may fail if last_heartbeat is not present in Redis. 7 years ago
Selwin Ong 25ced943e1 Merge branch 'master' of github.com:nvie/rq 7 years ago
Selwin Ong 1d7b5e834b
Worker statistics (#897)
* First stab at implementing worker statistics.

* Moved worker data restoration logic to worker.refresh().

* Failed and successfull job counts are now properly incremented.

* Worker now keeps track of total_working_time

* Ensure job.ended_at is set in the case of unhandled job failure.

* handle_job_failure shouldn't crash if job.started_at is not present.
7 years ago
Selwin Ong 3c98175a4a Bump version to 0.9.0 7 years ago
Selwin Ong 32747b59fa
Merge pull request #896 from theodesp/Issue-812
Fixed #812 - Send heartbeat during suspension check
7 years ago