fix bug kéo thả của loop
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-13 14:20:23 +07:00
parent 9776e29d7d
commit 1716351016
6 changed files with 190 additions and 127 deletions

View File

@@ -1,33 +1,66 @@
{
"queue": [
{
"created_at": "2026-06-13T07:03:00Z",
"finished_at": "2026-06-13T07:03:01Z",
"id": "c636ad0d89937cd2",
"created_at": "2026-06-13T07:19:31Z",
"finished_at": "2026-06-13T07:19:32Z",
"id": "3a520bd342883c75",
"log": [
{
"level": "info",
"message": "Loop 1/1",
"ts": "2026-06-13T07:19:31Z"
},
{
"level": "info",
"message": "Set PLC register (set_plc_register) simulated",
"ts": "2026-06-13T07:19:31Z"
},
{
"level": "info",
"message": "Wait 1000ms",
"ts": "2026-06-13T07:03:00Z"
"ts": "2026-06-13T07:19:31Z"
}
],
"mission": {
"actions": [
{
"id": "a1",
"children": [
{
"id": "c6c40563-0755-4e97-a48a-bb91ac8b0a9c",
"kind": "action",
"label": "Set PLC register",
"params": {
"action": "set",
"register": 1,
"value": 0
},
"type": "set_plc_register"
},
{
"id": "a1",
"kind": "action",
"label": "Wait",
"params": {
"seconds": 1
},
"type": "wait"
}
],
"id": "65f3cf0b-73fa-4f51-8774-1c5d4c83d8c4",
"kind": "action",
"label": "Wait",
"label": "Loop",
"params": {
"seconds": 1
"count": 1,
"mode": "count"
},
"type": "wait"
"type": "loop"
}
],
"description": "",
"group": "Missions",
"id": "5ae9dbcb0722dffb",
"name": "Test run",
"updated_at": "2026-06-13T04:44:03Z"
"updated_at": "2026-06-13T07:19:17.185Z"
},
"mission_group": "Missions",
"mission_id": "5ae9dbcb0722dffb",
@@ -36,37 +69,70 @@
"priority": 0,
"robot_id": "default",
"source": "ui",
"started_at": "2026-06-13T07:03:00Z",
"started_at": "2026-06-13T07:19:31Z",
"status": "completed"
},
{
"created_at": "2026-06-13T07:03:01Z",
"finished_at": "2026-06-13T07:03:02Z",
"id": "06048341b549f0ac",
"created_at": "2026-06-13T07:19:41Z",
"finished_at": "2026-06-13T07:19:43Z",
"id": "51de82d74cb4b1cd",
"log": [
{
"level": "info",
"message": "Loop 1/1",
"ts": "2026-06-13T07:19:41Z"
},
{
"level": "info",
"message": "Set PLC register (set_plc_register) simulated",
"ts": "2026-06-13T07:19:41Z"
},
{
"level": "info",
"message": "Wait 1000ms",
"ts": "2026-06-13T07:03:01Z"
"ts": "2026-06-13T07:19:42Z"
}
],
"mission": {
"actions": [
{
"id": "a1",
"children": [
{
"id": "c6c40563-0755-4e97-a48a-bb91ac8b0a9c",
"kind": "action",
"label": "Set PLC register",
"params": {
"action": "set",
"register": 1,
"value": 0
},
"type": "set_plc_register"
},
{
"id": "a1",
"kind": "action",
"label": "Wait",
"params": {
"seconds": 1
},
"type": "wait"
}
],
"id": "65f3cf0b-73fa-4f51-8774-1c5d4c83d8c4",
"kind": "action",
"label": "Wait",
"label": "Loop",
"params": {
"seconds": 1
"count": 1,
"mode": "count"
},
"type": "wait"
"type": "loop"
}
],
"description": "",
"group": "Missions",
"id": "5ae9dbcb0722dffb",
"name": "Test run",
"updated_at": "2026-06-13T04:44:03Z"
"updated_at": "2026-06-13T07:19:17.185Z"
},
"mission_group": "Missions",
"mission_id": "5ae9dbcb0722dffb",
@@ -75,85 +141,7 @@
"priority": 0,
"robot_id": "default",
"source": "ui",
"started_at": "2026-06-13T07:03:01Z",
"status": "completed"
},
{
"created_at": "2026-06-13T07:03:01Z",
"finished_at": "2026-06-13T07:03:03Z",
"id": "887245afd51df357",
"log": [
{
"level": "info",
"message": "Wait 1000ms",
"ts": "2026-06-13T07:03:02Z"
}
],
"mission": {
"actions": [
{
"id": "a1",
"kind": "action",
"label": "Wait",
"params": {
"seconds": 1
},
"type": "wait"
}
],
"description": "",
"group": "Missions",
"id": "5ae9dbcb0722dffb",
"name": "Test run",
"updated_at": "2026-06-13T04:44:03Z"
},
"mission_group": "Missions",
"mission_id": "5ae9dbcb0722dffb",
"mission_name": "Test run",
"parameters": {},
"priority": 0,
"robot_id": "default",
"source": "modbus:1005",
"started_at": "2026-06-13T07:03:02Z",
"status": "completed"
},
{
"created_at": "2026-06-13T07:03:01Z",
"finished_at": "2026-06-13T07:03:04Z",
"id": "4365bd4d8beedfd2",
"log": [
{
"level": "info",
"message": "Wait 1000ms",
"ts": "2026-06-13T07:03:03Z"
}
],
"mission": {
"actions": [
{
"id": "a1",
"kind": "action",
"label": "Wait",
"params": {
"seconds": 1
},
"type": "wait"
}
],
"description": "",
"group": "Missions",
"id": "5ae9dbcb0722dffb",
"name": "Test run",
"updated_at": "2026-06-13T04:44:03Z"
},
"mission_group": "Missions",
"mission_id": "5ae9dbcb0722dffb",
"mission_name": "Test run",
"parameters": {},
"priority": 0,
"robot_id": "default",
"source": "fleet:pytest-schedule",
"started_at": "2026-06-13T07:03:03Z",
"started_at": "2026-06-13T07:19:41Z",
"status": "completed"
}
],
@@ -163,6 +151,6 @@
"message": "Hoàn thành: Test run",
"paused": false,
"state": "idle",
"updated_at": "2026-06-13T07:03:04Z"
"updated_at": "2026-06-13T07:19:43Z"
}
}