Python
from parallel import Parallel client = Parallel(api_key="API Key") task_group_events = client.beta.task_group.events("taskgroup_id") for event in task_group_events: print(event)
{ "type": "task_group_status", "event_id": "123", "status": { "num_task_runs": 1, "task_run_status_counts": { "completed": 1 }, "is_active": false, "status_message": "", "modified_at": "2025-04-23T20:21:48.037943Z" } }
Streams events from a TaskGroup: status updates and run completions.
The connection will remain open for up to an hour as long as at least one run in the group is still active.
Successful Response
Event indicating an update to group status.
Event type; always 'task_group_status'.
"task_group_status"
Cursor to resume the event stream.
Task group status object.
Show child attributes