628
}
629
631
>
if err != nil {
632
syncMatchResult = taskAddErrResult(err)
633
}
635
>
636
>
// Build ID is not returned for sync match. The returned build ID is used by History to update
637
>
// mutable state (and visibility) when the first workflow task is spooled.
638
>
// For sync-match case, History has already received the build ID in the Record*TaskStarted call.
639
>
// By omitting the build ID from this response we help History immediately know that no MS update is needed.
640
>
return "", syncMatched, err
641
} else if errors.Is(err, errReprocessTask) {
642
// We get this if userdata changed while the task was blocked in TrySyncMatch