Table of Contents

Class ContinueAsNewOptions

Namespace
Temporalio.Workflows
Assembly
Temporalio.dll

Options for continue as new.

public class ContinueAsNewOptions : ICloneable
Inheritance
ContinueAsNewOptions
Implements
Inherited Members

Properties

InitialVersioningBehavior

Gets or sets the versioning behavior for the first task of the new workflow run. For example, set to AutoUpgrade to upgrade to the latest version on continue-as-new instead of inheriting the pinned version from the previous run.

public InitialVersioningBehavior? InitialVersioningBehavior { get; set; }

Property Value

InitialVersioningBehavior?

Remarks

WARNING: Worker deployment based versioning is currently experimental.

Memo

Gets or sets the memo for continue as new. If unset, default to the current workflow's memo.

public IReadOnlyDictionary<string, object>? Memo { get; set; }

Property Value

IReadOnlyDictionary<string, object>

RetryPolicy

Gets or sets the retry policy for continue as new. If unset, defaults to the current workflow's retry policy.

public RetryPolicy? RetryPolicy { get; set; }

Property Value

RetryPolicy

RunTimeout

Gets or sets the run timeout for continue as new. If unset, defaults to current workflow's run timeout.

public TimeSpan? RunTimeout { get; set; }

Property Value

TimeSpan?

TaskQueue

Gets or sets the task queue to continue as new. If unset, defaults to current workflow's task queue.

public string? TaskQueue { get; set; }

Property Value

string

TaskTimeout

Gets or sets the task timeout for continue as new. If unset, defaults to current workflow's task timeout.

public TimeSpan? TaskTimeout { get; set; }

Property Value

TimeSpan?

TypedSearchAttributes

Gets or sets the search attributes for continue as new. If unset, default to current workflow's search attribute.

public SearchAttributeCollection? TypedSearchAttributes { get; set; }

Property Value

SearchAttributeCollection

VersioningIntent

Gets or sets whether the continued Workflow should run on a worker with a compatible Build Id or not when using the Worker Versioning feature.

[Obsolete("Worker Build Id versioning is deprecated in favor of Worker Deployment versioning")]
public VersioningIntent VersioningIntent { get; set; }

Property Value

VersioningIntent

Methods

Clone()

Create a shallow copy of these options.

public virtual object Clone()

Returns

object

A shallow copy of these options.