// Since there is a grace period, and the current workflow's start time is within that period,
// abort the entire request.
"Too many restarts for workflow %s. Time since last start: %d ms",
workflowKey.WorkflowID,
timeSinceStart.Milliseconds(),
)
return nil, &serviceerror.ResourceExhausted{
Cause: enumspb.RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW,
Scope: enumspb.RESOURCE_EXHAUSTED_SCOPE_NAMESPACE,
Message: msg,
}
}