How to Clear the Task Status Queried in Query-Status After DM Synchronization Task Stops

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: dm同步任务停止后,query-status中查询的任务状态,怎样清除

| username: TiDBer_OB4kHrS7

[TiDB Usage Environment] Production Environment / Testing / POC
[TiDB Version] V5.3.3
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact] Previously configured DM synchronization tasks, now the tasks are no longer needed. After stopping, using query-status still retrieves some related information after the task has stopped. How can these related task information be cleared?
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]

| username: 有猫万事足 | Original post link

I’m using version 7.1, and the displayed structure is already different. There is no sourceStatus node.

I think if you really don’t want to look at this source information, you can use jq to process the result. Just look at what you need.

| username: TiDBer_OB4kHrS7 | Original post link

jq processing refers to handling the results after querying, right? It seems there is no good way to clean up online.

| username: TiDB_C罗 | Original post link

This is the result of operate-source show, indicating that there are no subtasks running on the worker.