From 7915abf7a36689703f69b6de6e437d2ccfdfcab0 Mon Sep 17 00:00:00 2001
From: Karim Ahmed <karim.ahmed@xfel.eu>
Date: Wed, 17 Jul 2019 14:04:36 +0200
Subject: [PATCH] del_outfolder

---
 reportservice/report_service.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/reportservice/report_service.py b/reportservice/report_service.py
index ae3f1a4fa..f922ab669 100644
--- a/reportservice/report_service.py
+++ b/reportservice/report_service.py
@@ -283,15 +283,17 @@ async def server_runner(conf_file, jobs_timeout):
             asyncio.ensure_future(
                            push_figures(cfg['GLOBAL']['git']['repo-local'],
                                         all_new_files))
+            try:
+                # TODO:delete out-folder
+                # asyncio.ensure_future(del_folder(out_folder))
+            except:
+                logging.error(str(e))
         
             logging.info('All done')
+
             return
 
-            try:
-                # Delete out-folder
-                del_folder(out_folder)
-            except:
-                logging.error(str(e))
+
         try:
             asyncio.ensure_future(do_action(copy.copy(req_cfg), jobs_timeout))
         except Exception as e:  # actions that fail are only error logged
-- 
GitLab