31
31
handler_class, handler_args = error_handler
32
32
new_config.set('handler_exc_smtp', 'class', handler_class)
33
33
new_config.set('handler_exc_smtp', 'args', handler_args)
34
# script_lease_time specifies the time for which the scripts
35
# "queue" and "review" hold their locks. Set to twice the time
36
# interval execute-ingest-every, plus 1 minute slack to address
37
# a possible clock skew between two instances.
38
ingest_cycle = config()['execute-ingest-every']
34
# script_lease_time specifies the time for which scripts
35
# (e.g. askubuntu, github, and review, ) hold their locks before timing
37
script_lease_time = config()['script-lease-time']
38
if script_lease_time < 5:
40
if script_lease_time > 60:
41
script_lease_time = 60
44
'app:main', 'script_lease_time', ingest_cycle)
43
'app:main', 'script_lease_time', script_lease_time)
46
45
'app:main', 'worker_interval', worker_interval)
47
46
new_config.set('app:main', 'es_replicas', es_replicas)