749
var notFoundErr *serviceerror.NotFound
750
if errors.As(err, ¬FoundErr) {
752
>
"workflow not found in source cluster, proceed to cleanup")
753
>
// workflow is not found in source cluster, cleanup workflow in target cluster
754
>
return false, e.DeleteWorkflow(
755
>
ctx,
756
>
definition.NewWorkflowKey(
757
>
syncStateErr.NamespaceId,
758
>
syncStateErr.WorkflowId,
759
>
syncStateErr.RunId,
760
>
),
761
>
)
762
>
}
763
var failedPreconditionErr *serviceerror.FailedPrecondition
764
if !errors.As(err, &failedPreconditionErr) {