token *tokenspb.Task,
workflowConsistencyChecker WorkflowConsistencyChecker,
// TODO when the following APIs are deprecated
// remove this function since run ID will always be set
// * RecordActivityTaskHeartbeatById
// * RespondActivityTaskCanceledById
// * RespondActivityTaskFailedById
// * RespondActivityTaskCompletedById
if len(token.RunId) != 0 {
return nil
}