Daily operations
This section covers inspections, starting and stopping tasks, configuration changes, copying, import and export, and pre-deletion checks after tasks go live. Record every change and recheck its results. A running task alone does not prove ingestion is working. During verification, check that a known source record reaches the target table.
Where to operate: the taosExplorer Data In task page; run SQL in the taosExplorer Data Browser or taos CLI.
This section applies to service tasks managed in taosExplorer. Standalone taosx run commands are managed on their hosts through their startup methods.
Daily maintenance must check both task status and target data. A running task, an online Xnode, or an existing process alone does not prove ingestion is working.
Follow Xnode registration and maintenance and Agent deployment and maintenance for node registration and agent installation. See SQL management for exact commands. Do not create, drain, or delete nodes as an incidental part of routine inspection.
1. Record before operating
First record the task name and ID, source type, target cluster and database, actual execution Xnode, whether taosX-Agent is involved, and the operation time and time zone. Task configuration queries and exports may contain credentials.
Find the target task on the taosExplorer Data In task page and check its current status, failure reason, and recent data changes. Alternatively, use an account with query permissions to run the following in the taosExplorer Data Browser or taos CLI:
SHOW XNODES;
SHOW XNODE TASKS;
SHOW XNODE JOBS;
SHOW XNODE TASKS displays user-managed tasks. Query SHOW XNODE JOBS when the specific execution node and failure reason are needed. Match jobs to their parent task by task ID. Do not equate the existence of a standalone taosx run process with task status in these lists.
When taking over a task for the first time, establish an inspection record in this order:
| Step | Action | Assessment and next step |
|---|---|---|
| 1. Identify the object | Record id, name, source/target, xnode_id, via, desired_state, status, and reason from the task list | Check whether the task should be running; do not start tasks approved for deactivation |
| 2. Identify the location | Check node addresses with SHOW XNODES; if an agent is used, also run SHOW XNODE AGENTS; and check the selected agent | If a node or agent is abnormal, check the corresponding host first; do not restart blindly on the browser host |
| 3. Check activity | Follow Logs and performance to view recent monitoring samples and logs for the same task | If metrics stop updating, distinguish interrupted monitoring from a stopped task; investigate growing failures using the relevant troubleshooting steps |
| 4. Check data | Select a known new source record and query the actual target child table and time range | If status is normal but the record is missing, check each segment using Health assessment and missing-data investigation |
| 5. Save results | Record the check time, source record identifier, target result, and unresolved items | The next operator must be able to recheck the same record, not merely see “inspection normal” |
Source and target addresses, agent information, and configuration in query results may be sensitive. Keep originals on site and create separate redacted copies for external submission.
2. View task metrics
Click View in the target task row's Metrics area and distinguish Cumulative Metrics from Current Run. Do not confuse this with View in the row action menu, which opens task configuration.
- Check the task name, ID, and current run start first to ensure this is not a same-name copy or another execution instance.
- Use Current Run to assess current activity. Record two samples at a fixed interval and compare changes in input, processing, and failures. Cumulative Metrics across multiple runs have a different statistical scope and cannot be mixed into current-window rates.
- Fields vary by task type. Messages, batches, rows, and points cannot be directly subtracted from one another. See Metrics dictionary and alert recommendations for field definitions and duplicate-write boundaries. Establish a new baseline after a task restart, run-start change, or node change.
- If a panel is empty or shows only old samples, first check whether the task is running, whether those metrics are generated, and whether monitoring continues to update. Do not interpret missing data as zero. To query history, filter instances, or check raw samples, follow Logs and performance to inspect the monitoring database.
Even when metrics change, query target data. Do not treat a panel's cumulative write count as the number of unique target rows.
3. Start and stop
Before starting, confirm that the Xnode is online, the source and target are reachable from the actual execution host, and all required plugins, certificates, and files are available. For taosX-Agent collection, check these conditions on the agent host too.
Select the target task in taosExplorer and start or stop it. For SQL management, run commands in the management cluster's taosExplorer Data Browser or taos CLI. The following statements start and stop a task respectively. Replace the name with the actual task; do not run both consecutively:
START XNODE TASK 'your_task_name';
STOP XNODE TASK 'your_task_name';
Requery status after issuing the operation. After starting, send or select an identifiable source record and check its timestamp, value, and tags in the target table. After stopping, confirm stopped status and check whether previously in-flight data is still being written. If the source continues generating data, stopping the task may increase backlog or miss data that cannot be replayed.
A successful command response is not the end of verification:
- Desired state is running after startup, but actual state is not running: read
reasonand the corresponding host logs. Fix connections, permissions, or dependencies, then start the original task. Avoid repeatedly issuing start commands. - Actual state is not stopped after a stop request: save task, job, and node states, and check for unreachable nodes or processing that has not finished. Do not immediately start a second task with the same source and target.
- Status is stopped but target records briefly keep increasing: first compare in-flight batches read before stopping. If writes continue, check for other tasks or programs writing to the same target. Do not immediately conclude that stopping failed.
Whether stopping and restarting resumes progress depends on the connector, source retention policy, and recovery state saved on the execution host. See Restarts, checkpoints, and store-and-forward before operating.
4. Change configuration
Export or save the current configuration first, separately preserve recoverable real credentials as described in Export and import tasks, and record pre-change target samples and source progress. For changes to connection addresses, identities, points, target tables, parsing, or field mapping, stop the task first, change and restart it within a maintenance window, then verify a small scope.
Changing the consumer group, source objects, or time range may change the read starting point. Changing target tables or primary-key mapping may change where data is written. These are not performance-only tuning changes. Dual-active tasks also have immutable settings, including connection targets and subscription starting points. Follow the restrictions in Data ingestion (Xnode) SQL management.
Follow each configuration setting's instructions to determine whether a restart is required. In particular, changes to [resource] settings require restarting the corresponding process.
Use the following steps for each change to make rollback easier:
- Export the old definition and record the items being changed, source starting point, and last verified target record.
- Confirm that source retention is sufficient, stop the original task within the maintenance window, save the modified configuration, and recheck the source, target, and mapping.
- Start the original task and first verify one message, one point, or a short historical range. Check both parsing previews and actual ingestion.
- Observe reads, writes, failures, and lag continuously. Expand the scope only if results meet expectations. Otherwise, do not expand it; retain errors and restore the old configuration.
- Reverify after rolling configuration back. Restoring old configuration does not automatically undo data already written. Separately assess backfill and cleanup for incorrect target tables or primary-key changes.
5. Copy tasks
Copying creates another task starting from existing configuration. It does not recover the original task's progress. To continue after maintenance, start the original task instead of copying it first.
- Select Copy in the source task row's action menu to open configuration. First confirm that the copied task and source/target are correct.
- Give the new task a distinct name. Check the source identity, collection objects, read scope, target database and tables, agent, parsing and mapping, and error policies individually. Check Kafka consumer groups, MQTT Client IDs, file state, or other connector runtime identities against the relevant guides. Changing only the task name is insufficient.
- Obtain the task owner's confirmation and prepare an isolated scope before submission. A created task may start immediately; do not assume a copy stays stopped. While the original task runs, do not directly submit a copy with the same collection scope and target, to avoid duplicate processing or changing the original task's consumption behavior.
- Record the new task ID after submission, check actual status and execution node, and verify with a small set of source records and target queries. Copying configuration does not guarantee inheritance of consumer positions, caches, or plugin recovery files. Do not treat the copy's first run as resumption of the original task.
6. Export and import tasks
Task export saves task definitions. It is not a target database backup and does not replace protection of consumer positions, agent caches, or plugin recovery state on collection hosts.
Select the tasks to save on the Data In task page and use task export to save a JSON file. Manage it as sensitive configuration and record export time and product version. Save a separate copy before changes to avoid overwriting a version needed for rollback.
With Xnode DSN protection enabled, task export uses ordinary SHOW XNODE TASKS results, so sensitive source and target values may be ******. Such an export preserves definitions but is not a complete backup with recoverable credentials. Importing and copying create new tasks; masks cannot inherit the original task's secrets, and sensitive fields containing that mask are rejected when protection is enabled. Separately preserve real passwords, Tokens, and required certificate materials through controlled secret management or encrypted backups, recording their task-field mappings. Before import, restore real credentials in a controlled copy and check DSN encoding. Do not disable protection to obtain or recover secrets. A redacted diagnostic copy cannot replace these recovery materials. See TLS, DSNs, and sensitive files for the boundaries.
Before importing tasks, check Xnodes, taosX-Agent, plugins, certificates, and source/target addresses in the target environment. Do not directly import and start another identical configuration while the original task still runs; this may cause duplicate consumption or writes. Tasks imported from versions earlier than v3.4 require explicit startup. See Upgrade, rollback, and verification.
After export, confirm that the file is readable, contains the expected tasks, and record the task count. After import, compare names, sources/targets, agents, mappings, and read scopes individually before deciding which tasks to start. If IDs or addresses differ in the target environment, use actual import results, not old records, to search logs. On import failure, retain the complete error and original export file. Do not repeatedly import and create multiple task copies.
7. Checks before deleting tasks
First confirm that the task and its original recovery progress are no longer needed. Save its configuration and record the last verified target data position. Deletion behavior differs for ordinary and dual-active tasks:
| Task type | Post-deletion observation and handling |
|---|---|
| Ordinary task | Successful deletion removes the task record; background execution still needs to stop. If the node is unreachable, residual processes may stop only after it reconnects. |
| Dual-active task | Cleanup is asynchronous and may show deleting or delete_failed. Check status and reason, fix connection or permission issues, then retry deletion according to the SQL manual. |
Deleting a dual-active task cleans up its dedicated subscription resources. Recreating it does not inherit original progress. Do not delete and recreate instead of restarting, and do not manually delete topics, consumer groups, or task directories of unknown ownership.
Use start and stop operations for daily task control; confirm deletion separately. Obtain the task owner's confirmation, stop relevant tasks, and save configuration before deleting. After deletion, query the list to check the result and check whether the original execution node is still writing to the target. Task deletion does not clean up target business data; do not infer that data has been removed.
8. Daily verification and handover
At each inspection, confirm at least the following and record exceptions and the person handling them:
- Tasks that should run are running on intended nodes, and failure reasons have been addressed.
- Tasks whose sources should have new data have corresponding target records, with lag meeting business requirements.
- Historical tasks cover all required objects and time ranges, and counts and sampled values have been checked after completion.
- Write failures, backlog, disk usage, and resource consumption are not continuously worsening.
- Stop, recovery, and data boundaries have been checked after changes, and handover records include outstanding checks.
When data is missing for the first time, start with Health assessment and missing-data investigation. Do not delete tasks or clear state files first.