From 6510bb46f367aad6873af0e51bbf5e0de751a545 Mon Sep 17 00:00:00 2001 From: zhangliyong Date: Fri, 12 Sep 2014 11:36:13 +0700 Subject: [PATCH] Fix interval type bug, it should be float --- 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 fa65cfc..08a1181 100755 --- a/rq/cli/cli.py +++ b/rq/cli/cli.py @@ -88,7 +88,7 @@ def requeue(url, all, job_ids): @main.command() @url_option @click.option('--path', '-P', default='.', help='Specify the import path.') -@click.option('--interval', '-i', default=None, help='Updates stats every N seconds (default: don\'t poll)') # noqa +@click.option('--interval', '-i', default=0.0, help='Updates stats every N seconds (default: don\'t poll)') # noqa @click.option('--raw', '-r', is_flag=True, help='Print only the raw numbers, no bar charts') # noqa @click.option('--only-queues', '-Q', is_flag=True, help='Show only queue info') # noqa @click.option('--only-workers', '-W', is_flag=True, help='Show only worker info') # noqa