ZActivityStubBuilderInitial

zio.temporal.activity.ZActivityStubBuilderInitial
See theZActivityStubBuilderInitial companion object
final class ZActivityStubBuilderInitial[Res]

Attributes

Companion
object
Deprecated
[Since version 0.6.0] Build ZActivityOptions and provide it directly
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def withScheduleToCloseTimeout(timeout: Duration): ZActivityStubBuilder[Res]

Total time that a workflow is willing to wait for an Activity to complete.

Total time that a workflow is willing to wait for an Activity to complete.

ScheduleToCloseTimeout limits the total time of an Activity's execution including retries withStartToCloseTimeout to limit the time of a single attempt).

Either this option or withStartToCloseTimeout is required.

Defaults to unlimited, which is chosen if set to null.

Attributes

def withStartToCloseTimeout(timeout: Duration): ZActivityStubBuilder[Res]

Maximum time of a single Activity attempt.

Maximum time of a single Activity attempt.

Note that the Temporal Server doesn't detect Worker process failures directly. It relies on this timeout to detect that an Activity that didn't complete on time. So this timeout should be as short as the longest possible execution of the Activity body. Potentially long-running Activities must specify HeartbeatTimeout and call ZActivityExecutionContext.heartbeat periodically for timely failure detection.

If withScheduleToCloseTimeout is not provided, then this timeout is required.

Attributes