Hi there,
I have to predict the duration of a workflow where the duration depends on some user-provided parameters, at first I’ll average between best and worst case.
In order to be able to compute the worst case, I need to take into account the max activity duration, retries included.
let’s say I have the following activity options:
ao := workflow.ActivityOptions{
StartToCloseTimeout: time.Minute,
ScheduleToStartTimeout: time.Minute,
HeartbeatTimeout: time.Second * 2, // such a short timeout to make sample fail over very fast
RetryPolicy: &temporal.RetryPolicy{
InitialInterval: time.Second,
BackoffCoefficient: 2.0,
MaximumAttempts: 100,
MaximumInterval: time.Minute,
},
}
-
the max duration of a single activity will be
StartToCloseTimeout + ScheduleToStartTimeout
although the retry policy would last more? -
StartToCloseTimeout
is the timeout of every single execution attempt?
Thanks