You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/client/workflowMutation.ts
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ const workflowArgs = v.union(
36
36
args: v.any(),
37
37
}),
38
38
);
39
-
constINVALID_WORKFLOW_MESSAGE=`Invalid arguments for workflow: Did you invoke the workflow with ctx.runMutation() instead of workflow.start()?`;
39
+
constINVALID_WORKFLOW_MESSAGE=`Invalid arguments for workflow: Did you invoke the workflow with ctx.runMutation() instead of workflow.start()? Pro tip: to start a workflow directly from the CLI or dashboard, you can use args '{ fn: "path/to/file:workflowName", args: { ...your workflow args } }'`;
40
40
41
41
// This function is defined in the calling component but then gets passed by
42
42
// function handle to the workflow component for execution. This function runs
@@ -46,7 +46,14 @@ export function workflowMutation<ArgsValidator extends PropertyValidators>(
0 commit comments