[root@euler157 ~]#
[root@euler157 ~]# curl -XGET --unix-socket /home/admin/oceanbase/run/obshell.sock http://localhost/api/v1/task/dag/23232261533028866 | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4082 0 4082 0 0 786k 0 --:--:-- --:--:-- --:--:-- 1328k
{
"successful": true,
"timestamp": "2024-10-18T12:49:15.877531938+08:00",
"duration": 2,
"status": 200,
"traceId": "86d6d750460e7975",
"data": {
"id": "23232261533028866",
"dag_id": 6,
"name": "Start OB",
"stage": 2,
"max_stage": 6,
"state": "FAILED",
"operator": "RUN",
"start_time": "2024-10-18T11:52:22.353988791+08:00",
"end_time": "2024-10-18T11:52:25.376142784+08:00",
"additional_data": {},
"nodes": [
{
"id": "232322615330288622",
"node_id": 22,
"name": "Inform all agents to start observer",
"state": "SUCCEED",
"operator": "RUN",
"start_time": "2024-10-18T11:52:22.356450382+08:00",
"end_time": "2024-10-18T11:52:23.362314245+08:00",
"additional_data": null,
"sub_tasks": [
{
"id": "232322615330288622",
"task_id": 22,
"name": "Inform all agents to start observer",
"state": "SUCCEED",
"operator": "RUN",
"start_time": "2024-10-18T11:52:22.360671363+08:00",
"end_time": "2024-10-18T11:52:22.365712005+08:00",
"additional_data": null,
"execute_times": 1,
"execute_agent": {
"ip": "192.168.101.157",
"port": 2886
},
"task_logs": [
"Inform 192.168.101.157:2886 to create the task",
"ERROR: OcsAgentError: code = 1010, message = Known error: agent is under maintenance"
]
}
]
},
{
"id": "232322615330288623",
"node_id": 23,
"name": "Make sure all agents are ready",
"state": "FAILED",
"operator": "RUN",
"start_time": "2024-10-18T11:52:24.367748826+08:00",
"end_time": "2024-10-18T11:52:25.373802645+08:00",
"additional_data": null,
"sub_tasks": [
{
"id": "232322615330288623",
"task_id": 23,
"name": "Make sure all agents are ready",
"state": "FAILED",
"operator": "RUN",
"start_time": "2024-10-18T11:52:24.372044068+08:00",
"end_time": "2024-10-18T11:52:24.374305674+08:00",
"additional_data": null,
"execute_times": 1,
"execute_agent": {
"ip": "192.168.101.157",
"port": 2886
},
"task_logs": [
"ERROR: check sub dag created failed: Not all tasks created. main dag failed"
]
}
]
},
{
"id": "232322615330288624",
"node_id": 24,
"name": "Advance agents to execute the task",
"state": "PENDING",
"operator": "RUN",
"start_time": "2024-10-18T11:52:21.601423297+08:00",
"end_time": "2024-10-18T11:52:21.601423297+08:00",
"additional_data": null,
"sub_tasks": [
{
"id": "232322615330288624",
"task_id": 24,
"name": "Advance agents to execute the task",
"state": "PENDING",
"operator": "RUN",
"start_time": "2024-10-18T11:52:21.60150983+08:00",
"end_time": "2024-10-18T11:52:21.60150983+08:00",
"additional_data": null,
"execute_times": 0,
"execute_agent": {
"ip": "192.168.101.157",
"port": 2886
},
"task_logs": null
}
]
},
{
"id": "232322615330288625",
"node_id": 25,
"name": "Wait for all agents to execute tasks successfully",
"state": "PENDING",
"operator": "RUN",
"start_time": "2024-10-18T11:52:21.601609925+08:00",
"end_time": "2024-10-18T11:52:21.601609925+08:00",
"additional_data": null,
"sub_tasks": [
{
"id": "232322615330288625",
"task_id": 25,
"name": "Wait for all agents to execute tasks successfully",
"state": "PENDING",
"operator": "RUN",
"start_time": "2024-10-18T11:52:21.601693682+08:00",
"end_time": "2024-10-18T11:52:21.601693682+08:00",
"additional_data": null,
"execute_times": 0,
"execute_agent": {
"ip": "192.168.101.157",
"port": 2886
},
"task_logs": null
}
]
},
{
"id": "232322615330288626",
"node_id": 26,
"name": "Start Zone",
"state": "PENDING",
"operator": "RUN",
"start_time": "2024-10-18T11:52:21.601803455+08:00",
"end_time": "2024-10-18T11:52:21.601803455+08:00",
"additional_data": null,
"sub_tasks": [
{
"id": "232322615330288626",
"task_id": 26,
"name": "Start Zone",
"state": "PENDING",
"operator": "RUN",
"start_time": "2024-10-18T11:52:21.601910835+08:00",
"end_time": "2024-10-18T11:52:21.601910835+08:00",
"additional_data": null,
"execute_times": 0,
"execute_agent": {
"ip": "192.168.101.157",
"port": 2886
},
"task_logs": null
}
]
},
{
"id": "232322615330288627",
"node_id": 27,
"name": "Inform all agents to end the task",
"state": "PENDING",
"operator": "RUN",
"start_time": "2024-10-18T11:52:21.602004081+08:00",
"end_time": "2024-10-18T11:52:21.602004081+08:00",
"additional_data": null,
"sub_tasks": [
{
"id": "232322615330288627",
"task_id": 27,
"name": "Inform all agents to end the task",
"state": "PENDING",
"operator": "RUN",
"start_time": "2024-10-18T11:52:21.602083404+08:00",
"end_time": "2024-10-18T11:52:21.602083404+08:00",
"additional_data": null,
"execute_times": 0,
"execute_agent": {
"ip": "192.168.101.157",
"port": 2886
},
"task_logs": null
}
]
}
]
}
}
[root@euler157 ~]#
[root@euler157 ~]#