Interrupted backups stay 'running' forever; End Time renders '-0001'; no log #307
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type: bug Priority: high Component: com_mokosuitebackup
Summary
When the driving window/CLI dies mid-run (closed tab, PHP timeout, killed cron), the record is orphaned in
runningwith a null end time, appears as a phantom in-progress backup on the dashboard, shows(no log available), and — until the Cancel-Stalled fatal is fixed — could not be cleared.The backup detail view also renders the null
backupend(0000-00-00 00:00:00) as the bogus "Monday, November 29, -0001".Fix (this PR)
BackupStatusHelper::markStalledAsFailed()flipsrunningrecords older than a 1h threshold tofail; swept when the records list loads (the threshold spares genuinely in-flight scheduled/CLI backups, which run without the admin browser lock).backupend.Follow-up (not in this PR)
Branch created:
feature/307-interrupted-backups-stay-running-forever