mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
delete files locally after loading to s3
This commit is contained in:
parent
b03892f7fc
commit
aed20ac3c6
1 changed files with 6 additions and 0 deletions
|
|
@ -174,6 +174,12 @@ def process_job(
|
|||
# if job.sharepoint_link:
|
||||
# upload_job_to_sharepoint(sharepoint_client, job.sharepoint_link, job_files)
|
||||
|
||||
for file_path in job_files:
|
||||
try:
|
||||
os.remove(file_path)
|
||||
except OSError:
|
||||
logger.warning(f"Failed to delete temp file {file_path}")
|
||||
|
||||
return job_files
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue