Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions nexus/workflow-service.wit
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ interface workflow-service {
/// python="Workflow type name or callable identifying the workflow to start."
/// typescript="Workflow type name or workflow function identifying the workflow to start."
/// dotnet="Workflow type name or workflow expression identifying the workflow to start."
/// go="Workflow function identifying the workflow to start."
/// @nexus.proto-field "workflow_type"
workflow: workflow-function,
/// @nexus.doc "Unique identifier for the workflow execution."
/// @nexus.doc "Unique identifier for the workflow execution. Must be nonempty."
/// @nexus.proto-field "workflow_id"
id: string,
/// @nexus.doc "Task queue to run the workflow on."
Expand All @@ -50,14 +51,17 @@ interface workflow-service {
/// dotnet="Signal name or signal expression to send with the start request."
/// @nexus.proto-field "signal_name"
signal: signal-function,
/// @nexus.doc "Total workflow execution timeout, including retries and continue-as-new."
/// @nexus.doc "Total workflow execution timeout, including retries and continue-as-new. Defaults to unlimited."
/// @nexus.proto-field "workflow_execution_timeout"
/// @nexus.name go="WorkflowExecutionTimeout"
execution-timeout: option<duration>,
/// @nexus.doc "Timeout of a single workflow run."
/// @nexus.doc "Timeout of a single workflow run. Defaults to the workflow execution timeout."
/// @nexus.proto-field "workflow_run_timeout"
/// @nexus.name go="WorkflowRunTimeout"
run-timeout: option<duration>,
/// @nexus.doc "Timeout of a single workflow task."
/// @nexus.doc "Timeout of a single workflow task. Defaults to 10 seconds."
/// @nexus.proto-field "workflow_task_timeout"
/// @nexus.name go="WorkflowTaskTimeout"
task-timeout: option<duration>,
/// @nexus.omit
identity: placeholder,
Expand All @@ -67,7 +71,7 @@ interface workflow-service {
/// @nexus.proto-field "workflow_id_reuse_policy"
/// @nexus.default "allow-duplicate"
id-reuse-policy: workflow-id-reuse-policy,
/// @nexus.doc "Behavior when a workflow is currently running with the same ID. Set to use-existing for idempotent deduplication on workflow ID. Cannot be set if id-reuse-policy is terminate-if-running."
/// @nexus.doc "Behavior when a workflow is currently running with the same ID. Set to use-existing for idempotent deduplication on workflow ID. Cannot be set if id-reuse-policy is terminate-if-running. Defaults to use-existing."
/// @nexus.proto-field "workflow_id_conflict_policy"
id-conflict-policy: option<workflow-id-conflict-policy>,
/// @nexus.doc "Retry policy for the workflow."
Expand Down
Loading