Provisioning: Split active and finished jobs (#103351)

This commit is contained in:
Alex Khomenko
2025-04-03 17:38:12 +03:00
committed by GitHub
parent d6ec8ab8b1
commit edefc80c2a
8 changed files with 282 additions and 135 deletions
@@ -176,7 +176,7 @@ func (d *jobDriver) drive(ctx context.Context) error {
}
// Save the finished job
err = d.historicJobs.WriteJob(ctx, job)
err = d.historicJobs.WriteJob(ctx, job.DeepCopy())
if err != nil {
// We're not going to return this as it is not critical. Not ideal, but not critical.
logger.Warn("failed to create historic job", "historic_job", *job, "error", err)