Skip to content

Commit

Permalink
feat: delete local flux file once sent to MinIO
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajar AIT EL KADI committed Nov 17, 2023
1 parent 74c58eb commit bc715b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data_pipelines/rne/flux/flux_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ def get_and_save_daily_flux_rne(
],
)
logging.info(f"****** Sent file to MinIO: {json_file_name}")
logging.info(f"****** Deleting file: {json_file_path}")
os.remove(json_file_path)


def get_every_day_flux(ti):
Expand Down

0 comments on commit bc715b4

Please sign in to comment.