ms historyi.MutableState,
task *tasks.ChasmTask,
// Because CHASM timers can target closed workflows, we need to specifically
// exclude zombie workflows, instead of merely checking that the workflow is
// running.
if ms.GetExecutionState().State == enumsspb.WORKFLOW_EXECUTION_STATE_ZOMBIE {
return false, false, consts.ErrWorkflowZombie
}
if tree == nil {
return false, false, errNoChasmTree
}
}