Skip to content

Commit

Permalink
Remove datasource file after task success as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sravfeyn authored Aug 29, 2023
1 parent 0e5a093 commit c49ba5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hq_superset/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c49ba5f

Please sign in to comment.