fix(deployment): detach each instance's settled rows from the bulk deploy's shared unit of work after Finalize (review 2026-10-21 04/M3)
This commit is contained in:
@@ -1051,6 +1051,13 @@ public class DeploymentService
|
||||
{
|
||||
step.LockHandle?.Dispose();
|
||||
}
|
||||
|
||||
// This instance is done. The batch shares ONE scoped unit of work, so
|
||||
// without this its staged copy and old/new snapshot JSON would stay
|
||||
// tracked (and re-scanned by every later SaveChanges) until the whole
|
||||
// batch ends; dropping the step's own copy of the config lets it go too.
|
||||
_repository.DetachSettledDeploymentRows(step.Instance.Id);
|
||||
prepared[finalizedUpTo] = step with { ConfigJson = string.Empty };
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user