Skip to content

Commit

Permalink
Merge pull request #28 from dimagi/sravfeyn-patch-1
Browse files Browse the repository at this point in the history
Remove datasource file after task success as well
  • Loading branch information
sravfeyn authored Aug 29, 2023
2 parents 0e5a093 + c49ba5f commit d80c3ac
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 d80c3ac

Please sign in to comment.