Skip to content
Snippets Groups Projects
Commit ea08b7b7 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

better timeout default set

parent 78dc2657
No related branches found
No related tags found
1 merge request!117Fix/reportservice timeout from conf
......@@ -205,11 +205,7 @@ async def server_runner(conf_file):
async def do_action(cfg):
logging.info('Run plot production')
try:
jobs_timeout = cfg['GLOBAL']['report-service']['job-timeout']
except:
# Default value of 1 hour timeout, if none was set.
jobs_timeout = 3600
jobs_timeout = cfg['GLOBAL']['report-service'].get('job-timeout', 3600)
all_new_files = []
all_new_files.append('{}/{}'.format(config['GLOBAL']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment