pub struct WorkflowOptions {
pub id_reuse_policy: WorkflowIdReusePolicy,
pub id_conflict_policy: WorkflowIdConflictPolicy,
pub execution_timeout: Option<Duration>,
pub run_timeout: Option<Duration>,
pub task_timeout: Option<Duration>,
pub cron_schedule: Option<String>,
pub search_attributes: Option<HashMap<String, Payload>>,
pub enable_eager_workflow_start: bool,
pub retry_policy: Option<RetryPolicy>,
pub links: Vec<Link>,
pub completion_callbacks: Vec<Callback>,
pub priority: Option<Priority>,
}
Expand description
Optional fields supplied at the start of workflow execution
Fields§
§id_reuse_policy: WorkflowIdReusePolicy
Set the policy for reusing the workflow id
id_conflict_policy: WorkflowIdConflictPolicy
Set the policy for how to resolve conflicts with running policies. NOTE: This is ignored for child workflows.
execution_timeout: Option<Duration>
Optionally set the execution timeout for the workflow https://docs.temporal.io/workflows/#workflow-execution-timeout
run_timeout: Option<Duration>
Optionally indicates the default run timeout for a workflow run
task_timeout: Option<Duration>
Optionally indicates the default task timeout for a workflow run
cron_schedule: Option<String>
Optionally set a cron schedule for the workflow
search_attributes: Option<HashMap<String, Payload>>
Optionally associate extra search attributes with a workflow
enable_eager_workflow_start: bool
Optionally enable Eager Workflow Start, a latency optimization using local workers NOTE: Experimental and incompatible with versioning with BuildIDs
retry_policy: Option<RetryPolicy>
Optionally set a retry policy for the workflow
links: Vec<Link>
Links to associate with the workflow. Ex: References to a nexus operation.
completion_callbacks: Vec<Callback>
Callbacks that will be invoked upon workflow completion. For, ex, completing nexus operations.
priority: Option<Priority>
Priority for the workflow
Trait Implementations§
Source§impl Clone for WorkflowOptions
impl Clone for WorkflowOptions
Source§fn clone(&self) -> WorkflowOptions
fn clone(&self) -> WorkflowOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WorkflowOptions
impl Debug for WorkflowOptions
Source§impl Default for WorkflowOptions
impl Default for WorkflowOptions
Source§fn default() -> WorkflowOptions
fn default() -> WorkflowOptions
Auto Trait Implementations§
impl Freeze for WorkflowOptions
impl RefUnwindSafe for WorkflowOptions
impl Send for WorkflowOptions
impl Sync for WorkflowOptions
impl Unpin for WorkflowOptions
impl UnwindSafe for WorkflowOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request