fix(k1): cease reset zero-dispatch checkpoint
This commit is contained in:
@@ -8519,6 +8519,32 @@ class XgridsK1CompatibilityService:
|
||||
physical_preflight.get("record_revision"),
|
||||
),
|
||||
)
|
||||
retired_physical_record = physical_retirement.get("record")
|
||||
if (
|
||||
isinstance(retired_physical_record, Mapping)
|
||||
and retired_physical_record.get("action") == "start"
|
||||
and retired_physical_record.get("stage") == "resolved"
|
||||
and retired_physical_record.get("resolution") == "not-dispatched"
|
||||
):
|
||||
start_operation_id = retired_physical_record.get("operation_id")
|
||||
start_acquisition_id = retired_physical_record.get("acquisition_id")
|
||||
start_payload_sha256 = retired_physical_record.get("payload_sha256")
|
||||
if not all(
|
||||
isinstance(value, str)
|
||||
for value in (
|
||||
start_operation_id,
|
||||
start_acquisition_id,
|
||||
start_payload_sha256,
|
||||
)
|
||||
):
|
||||
raise ActiveAcquisitionRecoveryCheckpointError(
|
||||
"scenario reset resolved START without exact checkpoint identity"
|
||||
)
|
||||
self._cease_prepared_start_checkpoint_not_dispatched(
|
||||
operation_id=cast(str, start_operation_id),
|
||||
acquisition_id=cast(str, start_acquisition_id),
|
||||
payload_sha256=cast(str, start_payload_sha256),
|
||||
)
|
||||
physical_disposition = str(physical_retirement.get("disposition") or "unknown")
|
||||
retired_physical_operation_id = physical_preflight.get("operation_id")
|
||||
with self._lock:
|
||||
|
||||
Reference in New Issue
Block a user