Automatically error file operations running longer than 12 hours

This commit is contained in:
Tom Moor
2023-04-26 21:55:00 -04:00
parent f1ce23dce9
commit 217d41332f
3 changed files with 102 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ class FileOperation extends IdModel {
* Mark the current file operation as expired and remove the file from storage.
*/
expire = async function () {
this.state = "expired";
this.state = FileOperationState.Expired;
try {
await deleteFromS3(this.key);
} catch (err) {