Initiates multiple task runs within a TaskGroup.
When set to true (default), the response includes the latest status of the runs. Set to false to skip status refresh and just add runs to the queue, which is useful when adding tasks to a task group at scale.
Request to initiate new task runs in a task group.
List of task runs to execute. Up to 1,000 runs can be specified per request. If you'd like to add more runs, split them across multiple TaskGroup POST requests.
Default task spec to use for the runs. If task_spec is specified in a run, it overrides this default.
Whether to refresh and return the latest status of all runs in the response. Defaults to true. Set to false when adding tasks at scale to get faster responses. The response will include a cached status instead. You can retrieve the latest status separately via the GET task-group endpoint.
Successful Response
Response from adding new task runs to a task group.
Status of the group. When refresh_status is true (the default), this returns the latest status. When refresh_status is false, this returns a cached status.
IDs of the newly created runs.
Cursor for these runs in the run stream at taskgroup/runs?last_event_id=<run_cursor>. Empty for the first runs in the group.
Cursor for these runs in the event stream at taskgroup/events?last_event_id=<event_cursor>. Empty for the first runs in the group.