Ensure clean up of uploaded file if job fails. #9

Merged
niat8586 merged 1 commits from failed-job-cleanup into develop 2025-02-04 06:43:13 +01:00

1 Commits

Author SHA1 Message Date
cced346d3b Ensured clean up of uploaded file if job fails.
Previously if a job failed and it's status was set to `JobStatus.FAILED` the uploaded
file was never removed. Which was the intended design. This was an omission.

Now if the job is set to FAILED, the uploaded file will be removed correctly.
This is to ensure that uploaded files do not persist in perpetuity on the file system.

FileMetadata will still be available in the DB (B.N. not the actual file).
2025-02-04 06:39:07 +01:00