Skip to content
Snippets Groups Projects

fix/cpy_conf_after_req

Merged Karim Ahmed requested to merge fix/cpy_conf_after_req into master
1 file
+ 5
6
Compare changes
  • Side-by-side
  • Inline
@@ -204,9 +204,8 @@ async def server_runner(conf_file):
async def do_action(cfg):
logging.info('Run plot production')
fig_local = '{}/figures'.format(cfg['GLOBAL']['git']
['repo-local'])
local_repo = cfg['GLOBAL']['git']['repo-local']
fig_local = '{}/figures'.format(local_repo)
jobs_timeout = cfg['GLOBAL']['report-service'].get('job-timeout',
3600)
all_new_files = []
@@ -290,6 +289,8 @@ async def server_runner(conf_file):
logging.info('{} figures of {} are copied into {}'.format(
len(figures), det_name, fig_local))
# Remove sensitive information from the config file.
del cfg['GLOBAL']
# Write the requested cfg.yaml before pushing all figures.
with open('{}/report_conf.yaml'.format(
fig_local), 'w') as outfile:
@@ -297,9 +298,7 @@ async def server_runner(conf_file):
all_new_files.append('{}/report_conf.yaml'.format(fig_local))
asyncio.ensure_future(
push_figures(cfg['GLOBAL']['git']['repo-local'],
all_new_files))
asyncio.ensure_future(push_figures(local_repo, all_new_files))
# TODO:delete out-folder
#try:
# asyncio.ensure_future(del_folder(out_folder))
Loading