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

added default value

parent 9d5e00ad
No related branches found
No related tags found
1 merge request!117Fix/reportservice timeout from conf
......@@ -205,7 +205,11 @@ async def server_runner(conf_file):
async def do_action(cfg):
logging.info('Run plot production')
jobs_timeout = cfg['GLOBAL']['report-service']['job-timeout']
try:
jobs_timeout = cfg['GLOBAL']['report-service']['job-timeout']
except:
# Default value of 1 hour timeout, if none was set.
jobs_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