--- a/poll-hgweb-queue.py Thu Nov 17 00:03:14 2016 +0800
+++ b/poll-hgweb-queue.py Thu Nov 17 00:05:04 2016 +0800
group.add_argument('--redis-host', help='(default: 127.0.0.1)')
group.add_argument('--redis-port', type=int, help='(default: 6379)')
group.add_argument('--redis-password')
- group.add_argument('--interval', type=int, help='(default: 1 hour)')
+ group.add_argument('--poll-interval', type=int, help='(default: 1 hour)')
args = parser.parse_args()
config = yaml.safe_load(args.config) if hasattr(args, 'config') else {}
rhost = lookup_option('redis-host', args, config, default='127.0.0.1')
rport = lookup_option('redis-port', args, config, default=6379)
rpass = lookup_option('redis-password', args, config)
- interval = lookup_option('interval', args, config, default=60 * 60)
+ interval = lookup_option('poll-interval', args, config, default=60 * 60)
level=logging.DEBUG if args.debug else logging.INFO,