1987
func (ms *MutableStateImpl) GetFirstRunID(
1988
ctx context.Context,
1990
>
// Prefer the canonical source on ExecutionState; the equivalent field on ExecutionInfo is
1991
>
// deprecated. NewMutableStateFromDB backfills ExecutionState from ExecutionInfo on load, so
1992
>
// records that pre-date the ExecutionState field also resolve here.
1993
>
if firstRunID := ms.executionState.FirstExecutionRunId; firstRunID != "" {
1994
>
return firstRunID, nil
1995
>
}
1996
if firstRunID := ms.executionInfo.FirstExecutionRunId; firstRunID != "" {
1997
return firstRunID, nil