Files
ARTEX/db
BaaRai 74116993cc fix(server): fail the archive job instead of crashing on a worker panic
The archive worker goroutine had no recover. An S3-compatible endpoint
that answers CreateMultipartUpload with 200 and no UploadId makes the
SDK upload manager dereference a nil pointer, which ended the server.

Run each claimed job under a recover: log the panic value and stack and
return it as the job error, so the job is failed through the same
FailTaskArchiveJob path as any other error. The job's deferred rollbacks
have run by then, so the source data stays in place.

FailTaskArchiveJob now only fails a job that is still in its active
state. A panic recovered after the archive committed would otherwise
turn a ready archive into archive_failed, which can be neither restored
nor deleted.
2026-11-20 21:13:55 +01:00
..
2026-07-26 04:27:45 -04:00
2026-10-08 23:14:34 +02:00
2026-08-28 12:56:29 +08:00
2026-08-28 12:56:29 +08:00
2026-08-28 12:56:29 +08:00