From c49ba5f488d4f643c42171667cbdb4bc1dce5f07 Mon Sep 17 00:00:00 2001 From: Sravan Reddy Date: Tue, 29 Aug 2023 16:17:17 +0530 Subject: [PATCH] Remove datasource file after task success as well --- hq_superset/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hq_superset/tasks.py b/hq_superset/tasks.py index 71601ea..f81b0bd 100644 --- a/hq_superset/tasks.py +++ b/hq_superset/tasks.py @@ -14,5 +14,5 @@ def refresh_hq_datasource_task(domain, datasource_id, display_name, export_path, refresh_hq_datasource(domain, datasource_id, display_name, export_path, datasource_defn, user_id) except Exception: AsyncImportHelper(domain, datasource_id).mark_as_complete() - os.remove(export_path) raise + os.remove(export_path)