C3 AI Console Reference - c3MonitorQueues
c3MonitorQueues shows how many entries are in specific queues at an interval. You can specify one or more queues to be monitored, or default to all queues in your environment. If an interval is not specified, c3MonitorQueues defaults to a 1 minute interval.
Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| interval | number | Optional | Polling frequency in milliseconds. Defaults to (1 minute). |
| queue | object | Optional | Queue instance to be monitored (for example, CronQueue). Defaults to all queues. |
c3MonitorQueues remains active until you call c3StopMonitorQueues.
Examples
Monitor all queues:
JavaScript
c3MonitorQueues()Show entries in the cron job queue:
JavaScript
c3MonitorQueues(CronQueue)Show entries in multiple queues:
JavaScript
c3MonitorQueues(CronQueue, BatchQueue)Monitor multiple queues at 5-second intervals:
JavaScript
c3MonitorQueues(5000, CronQueue, KafkaQueue)