fix: skip backups if in_progress
This commit is contained in:
parent
b5ba03da3d
commit
3abf8ab12d
1 changed files with 5 additions and 0 deletions
|
|
@ -160,6 +160,11 @@ const executeBackup = async (scheduleId: number, manual = false) => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (schedule.lastBackupStatus === "in_progress") {
|
||||
logger.info(`Backup schedule ${scheduleId} is already in progress. Skipping execution.`);
|
||||
return;
|
||||
}
|
||||
|
||||
const volume = await db.query.volumesTable.findFirst({
|
||||
where: eq(volumesTable.id, schedule.volumeId),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue