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
Most of these methods will return a `scaleapi.Task` object, which will contain information
23
26
about the json response (task_id, status...).
@@ -28,7 +31,8 @@ Any parameter available in the documentation\_ can be passed as an argument opti
28
31
29
32
The following endpoints for tasks are available:
30
33
31
-
## Create Task
34
+
Create Task
35
+
^^^^^^^^^^^
32
36
33
37
This method can be used for any Scale supported task type using the following format:
34
38
`client.create_{{Task Type}}_task(...)` and passing the applicable values into the function definition. The applicable fields and further information for each task type can be found in scales API docs `here`\_\_ for further information.
@@ -52,7 +56,8 @@ This method can be used for any Scale supported task type using the following fo
52
56
}
53
57
)
54
58
55
-
## Retrieve task
59
+
Retrieve task
60
+
^^^^^^^^^^^^^
56
61
57
62
Check `this`\_\_ for further information.
58
63
@@ -66,7 +71,8 @@ Retrieve a task given its id.
66
71
print(task.status) // Task status ('pending', 'completed', 'error', 'canceled')
67
72
print(task.response) // If task is complete
68
73
69
-
## List Tasks
74
+
List Tasks
75
+
^^^^^^^^^^
70
76
71
77
Check `this`\_\_ for further information.
72
78
@@ -95,7 +101,8 @@ Retrieve a list of tasks, with optional filter by stand and end date/type. Pagin
95
101
break
96
102
print(all_tasks)
97
103
98
-
## Cancel Task
104
+
Cancel Task
105
+
^^^^^^^^^^^
99
106
100
107
Check `this`\_\_ for further information.
101
108
@@ -107,9 +114,11 @@ Cancel a task given its id if work has not stared on the task (task status is "q
0 commit comments