Class StartActivityOptions
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
public class StartActivityOptions : ICloneable
- Inheritance
-
StartActivityOptions
- Implements
- Inherited Members
Remarks
WARNING: Standalone activities are experimental.
Constructors
StartActivityOptions()
Initializes a new instance of the StartActivityOptions class.
public StartActivityOptions()
StartActivityOptions(string, string)
Initializes a new instance of the StartActivityOptions class.
public StartActivityOptions(string id, string taskQueue)
Parameters
Properties
HeartbeatTimeout
Gets or sets the maximum time between successful heartbeats.
public TimeSpan? HeartbeatTimeout { get; set; }
Property Value
Id
Gets or sets the unique activity identifier. This is required.
public string? Id { get; set; }
Property Value
IdConflictPolicy
Gets or sets how already-running activities of the same ID are treated. Default is Unspecified which effectively means Fail on the server.
public ActivityIdConflictPolicy IdConflictPolicy { get; set; }
Property Value
IdReusePolicy
Gets or sets whether to allow re-using an activity ID from a previously closed activity. Default is AllowDuplicate.
public ActivityIdReusePolicy IdReusePolicy { get; set; }
Property Value
Priority
Gets or sets the priority to use when starting this activity.
public Priority? Priority { get; set; }
Property Value
RetryPolicy
Gets or sets the retry policy for the activity. If unset, uses server default.
public RetryPolicy? RetryPolicy { get; set; }
Property Value
Rpc
Gets or sets RPC options for starting the activity.
public RpcOptions? Rpc { get; set; }
Property Value
ScheduleToCloseTimeout
Gets or sets the total time the activity is allowed to run including retries.
public TimeSpan? ScheduleToCloseTimeout { get; set; }
Property Value
ScheduleToStartTimeout
Gets or sets the maximum time the activity can wait in the task queue before being picked up by a worker. This timeout is non-retryable.
public TimeSpan? ScheduleToStartTimeout { get; set; }
Property Value
StartToCloseTimeout
Gets or sets the maximum time for a single execution attempt. This timeout is retryable.
public TimeSpan? StartToCloseTimeout { get; set; }
Property Value
StaticDetails
Gets or sets general fixed details for this activity execution that may appear in UI/CLI. This can be in Temporal markdown format and can span multiple lines.
public string? StaticDetails { get; set; }
Property Value
Remarks
WARNING: This setting is experimental.
StaticSummary
Gets or sets a single-line fixed summary for this activity execution that may appear in UI/CLI. This can be in single-line Temporal markdown format.
public string? StaticSummary { get; set; }
Property Value
Remarks
WARNING: This setting is experimental.
TaskQueue
Gets or sets the task queue to run the activity on. This is required.
public string? TaskQueue { get; set; }
Property Value
TypedSearchAttributes
Gets or sets the search attributes for the activity.
public SearchAttributeCollection? TypedSearchAttributes { get; set; }
Property Value
Methods
Clone()
Create a shallow copy of these options.
public virtual object Clone()
Returns
- object
A shallow copy of these options and any transitive options fields.