Fix interval type bug, it should be float

main
zhangliyong 10 years ago
parent 21c14c0e21
commit 6510bb46f3

@ -88,7 +88,7 @@ def requeue(url, all, job_ids):
@main.command() @main.command()
@url_option @url_option
@click.option('--path', '-P', default='.', help='Specify the import path.') @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('--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-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 @click.option('--only-workers', '-W', is_flag=True, help='Show only worker info') # noqa

Loading…
Cancel
Save