From 0e532f3ec423332430b5ab43083953ff8b4d1029 Mon Sep 17 00:00:00 2001 From: Nick Snell Date: Tue, 22 Dec 2015 13:24:55 +0000 Subject: [PATCH] Correction to worker command, cast results-ttl to int --- rq/cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/cli/cli.py b/rq/cli/cli.py index e21e68a..6b52bd7 100755 --- a/rq/cli/cli.py +++ b/rq/cli/cli.py @@ -144,7 +144,7 @@ def info(url, config, path, interval, raw, only_queues, only_workers, by_queue, @click.option('--job-class', '-j', default='rq.job.Job', help='RQ Job class to use') @click.option('--queue-class', default='rq.Queue', help='RQ Queue class to use') @click.option('--path', '-P', default='.', help='Specify the import path.') -@click.option('--results-ttl', help='Default results timeout to be used') +@click.option('--results-ttl', type=int, help='Default results timeout to be used') @click.option('--worker-ttl', type=int, help='Default worker timeout to be used') @click.option('--verbose', '-v', is_flag=True, help='Show more output') @click.option('--quiet', '-q', is_flag=True, help='Show less output')