StreamTasks
Establishes a server streaming connection that delivers task updates in real-time.
The stream delivers all existing non-terminal tasks when first connected, followed by real-time updates for task creation and status changes. Additionally, heartbeat messages are sent periodically to maintain the connection.
The stream delivers two types of responses:
- Heartbeat: A periodic message to maintain connection health
- TaskEvent: Contains a task and an event type indicating whether the task was created, updated, or was preexisting when the stream was established
Filtering options allow narrowing the stream to specific task types, statuses, assignees, parent tasks, or tasks updated after a certain time.
StreamTasksRequest
Optional additional views of a Task. If not set, defaults to TASK_VIEW_MANAGER.
The time interval, in milliseconds, that determines the frequency at which to send heartbeat events. Defaults to 30000 (30 seconds).
A filter for tasks with a specific parent task ID. Note: This filter is mutually exclusive with all other filter fields.