Skip to main content

CDC Sink: Get Task Info

Get CDC Sink task info via Client API

Use GetOngoingTaskInfoOperation with OngoingTaskType.CdcSink
to retrieve information about a specific CDC Sink task.

Get task info by task ID

Pass the numeric taskId together with OngoingTaskType.CdcSink.

var taskInfo = (OngoingTaskCdcSink)store.Maintenance.Send(
new GetOngoingTaskInfoOperation(taskId, OngoingTaskType.CdcSink));

Get task info by task name

Pass the task name together with OngoingTaskType.CdcSink.

var taskInfo = (OngoingTaskCdcSink)store.Maintenance.Send(
new GetOngoingTaskInfoOperation("MyCdcSinkTaskName", OngoingTaskType.CdcSink));

The returned OngoingTaskCdcSink object exposes the task's identity, configuration, connection details,
and runtime status, including:

Identity

FieldDescription
TaskId / TaskNameTask identity

State & status

FieldDescription
TaskStateEnabled, Disabled, or PartiallyEnabled
TaskConnectionStatusActive, NotActive, Reconnect, or NotOnThisNode
ResponsibleNodeThe cluster node currently running the task.
ErrorThe last error reported by the task, if any.
HealthIssuenull when healthy; a diagnostic message when the task detects a problem
(fallback mode, stale connection, etc.)

Connection & configuration

FieldDescription
ConnectionStringNameName of the connection string the task uses.
FactoryNameThe source provider (PostgreSQL, SQL Server, or MySQL/MariaDB).
ConfigurationThe full CdcSinkConfiguration (tables, column mappings, and other saved settings).

Runtime & lag

FieldDescription
LastBatchTimeUTC time of the last successfully completed batch.
null if no batch has completed yet.
LastCheckpointThe last successfully persisted checkpoint (LSN/GTID).
SecondsSinceLastBatchSeconds since the last successful batch. Provides a simple lag indicator.
null if no batch has completed yet.
LastActivityTimeUTC time of the last activity from the source
(poll iteration, replication message, or binlog event).
null before the first activity.
SecondsSinceLastActivitySeconds since the last source activity.
A large value may indicate a dead connection.

For performance and progress metrics (per-table statistics, initial-load progress), see Monitoring.

Get CDC Sink task info via Studio

Get task info

  1. Navigate to Databases → your database → TasksOngoing Tasks.
  2. On the CDC Sink task row, click the details toggle to expand the task and open the detail view.

Get CDC Sink task info via REST API

CDC Sink uses the shared single-task info endpoint.
Identify the task either by ID (key) or by name (taskName), together with type=CdcSink.

MethodEndpointAuth
GET/databases/{databaseName}/task?key={taskId}&type=CdcSinkValidUser
GET/databases/{databaseName}/task?taskName={taskName}&type=CdcSinkValidUser

In this article