Skip to content

Commit e3eff6e

Browse files
mjrussoMatt George
authored andcommitted
convert interval command-line option to float
1 parent fc25fff commit e3eff6e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/pyres_worker

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ def main():
3636

3737
logging.basicConfig(level=log_level, format="%(asctime)s: %(levelname)s: %(message)s")
3838

39+
interval = options.interval
40+
if interval is not None:
41+
interval = float(interval)
42+
3943
queues = args[0].split(',')
4044
server = '%s:%s' % (options.host,options.port)
41-
Worker.run(queues, server, options.interval)
45+
Worker.run(queues, server, interval)
4246

4347
if __name__ == "__main__":
4448
main()

0 commit comments

Comments
 (0)