mirror of https://github.com/peter4431/rq.git
fix --worker-ttl command line arg
Make sure it's converted to an int, since the rest of the code expects it to be. Without this patch, trying to use that argument gets you something like this: (cogo)[dbonner@bonnervm18 syseng]$ rqworker --worker-ttl 86400 21:52:07 RQ worker started, version 0.4.6 Traceback (most recent call last): File "/opt/cogo/bin/rqworker", line 9, in <module> load_entry_point('rq==0.4.6', 'console_scripts', 'rqworker')() File "/home/dbonner/src/github/rq/rq/scripts/rqworker.py", line 102, in main w.work(burst=args.burst) File "/home/dbonner/src/github/rq/rq/worker.py", line 354, in work timeout = None if burst else max(1, self.default_worker_ttl - 60) TypeError: unsupported operand type(s) for -: 'str' and 'int'main
parent
69adec5bc7
commit
e2f398be80
Loading…
Reference in New Issue