diff --git a/nexus/workflow-service.wit b/nexus/workflow-service.wit index 190aae88c..9714e40cf 100644 --- a/nexus/workflow-service.wit +++ b/nexus/workflow-service.wit @@ -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." @@ -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, - /// @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, - /// @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, /// @nexus.omit identity: placeholder, @@ -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, /// @nexus.doc "Retry policy for the workflow."