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: api-reference/go/workflows/Jobs.Submit.mdx
+17-12
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ icon: diagram-project
8
8
func (*JobClient) Submit(
9
9
ctx context.Context,
10
10
jobName string,
11
-
clusterSlug string,
12
-
maxRetries int,
13
-
tasks ...Task,
14
-
) (*Job, error)
11
+
cluster *workflows.Cluster,
12
+
tasks []workflows.Task,
13
+
options ...job.SubmitOption
14
+
) (*workflows.Job, error)
15
15
```
16
16
17
17
Submit a job.
@@ -21,15 +21,21 @@ Submit a job.
21
21
<ParamField path="jobName" type="string">
22
22
The name of the job
23
23
</ParamField>
24
-
<ParamField path="clusterSlug" type="string">
25
-
The [cluster slug](/workflows/concepts/clusters#managing-clusters) for the cluster to run the root task on
26
-
</ParamField>
27
-
<ParamField path="maxRetries" type="int">
28
-
The maximum number of [retries](/workflows/concepts/tasks#retry-handling) for the subtask in case it fails
24
+
<ParamField path="cluster" type="*Cluster">
25
+
The [cluster](/workflows/concepts/clusters#managing-clusters) to run the root task on
29
26
</ParamField>
30
27
<ParamField path="tasks" type="[]Task">
31
28
The root task for the job. This task is executed first and can submit subtasks to manage the entire workflow. A job can have optionally consist of multiple root tasks.
0 commit comments