1723 Commits (95558fcc1d9a673688eca88000207ac9439e172d)
 

Author SHA1 Message Date
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
Theo f226d38603 Fixed #812 - Send heartbeat during suspension check 7 years ago
Selwin Ong 92c88d3f4d Merge pull request #878 from theodesp/Issue-731
Fixed #731 - Support for deleting Queues
7 years ago
Selwin Ong a4be98dc87 Merge pull request #895 from stylight/master
try latin-1 if utf-8 doesn't work, when decoding exception strings
7 years ago
Selwin Ong 90bf8f0cf1 Merge pull request #888 from karech/master
Add at_front option for decorated functions
7 years ago
Selwin Ong 154488a427 Merge pull request #893 from greenmoon55/master
Fix README: fix badge and rename 'result' to 'job'
7 years ago
ndparker 911c5e0ca3 try latin-1 if utf-8 doesn't work, when decoding exception strings 7 years ago
greenmoon55 db491651f0 Fix README
Fix badge and rename 'result' to 'job'
7 years ago
Dmitriy Sorokin d6e875119a Add at_front option for decorated functions 7 years ago
Theo c095fe1825 Fixed #731 - Code review issues. Added delete_jobs parameter and pipelining. 7 years ago
Selwin Ong 43c9279c8d Merge pull request #882 from jiajunhuang/specify_logging_level
expose set logging level in cmd
7 years ago
Selwin Ong 47ee65eb84 Merge pull request #880 from samuelcolvin/millisecs-in-timestamps
add milliseconds into timestamps
7 years ago
Jiajun Huang 7408c23bc5 expose set logging level in cmd 7 years ago
Samuel Colvin 260fd84f51 add milliseconds into timestamps, fix #721 7 years ago
Selwin Ong 19bc288378 Merge pull request #877 from theodesp/Issue-809
Fixed #809 - Added tests for various cli config parameters
7 years ago
Selwin Ong fa6c28bf3c Merge pull request #876 from theodesp/Issue-866
Issue 866
7 years ago